Commit c3ce4120 authored by David Bokan's avatar David Bokan Committed by Commit Bot

Replace Node& cast with Member<T>::Get()

This came from https://crrev.com/c/559933. The cast was added to satisfy
a Windows compile error as it couldn't resolve the arguments to
operator!=.

A less ugly fix is to just get the raw pointer out of Member.

Bug: 
Change-Id: I14ed38a936aaf0457c2001a5e2c75b1a5ed91ac5
Reviewed-on: https://chromium-review.googlesource.com/567171Reviewed-by: default avatarSteve Kobes <skobes@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Commit-Queue: David Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#486211}
parent 7a0c6f61
...@@ -223,11 +223,11 @@ bool RootScrollerController::ScrollsViewport(const Element& element) const { ...@@ -223,11 +223,11 @@ bool RootScrollerController::ScrollsViewport(const Element& element) const {
} }
void RootScrollerController::ElementRemoved(const Element& element) { void RootScrollerController::ElementRemoved(const Element& element) {
if ((Node&)element != effective_root_scroller_) if (element != effective_root_scroller_.Get())
return; return;
RecomputeEffectiveRootScroller(); RecomputeEffectiveRootScroller();
DCHECK((Node&)element != effective_root_scroller_); DCHECK(element != effective_root_scroller_.Get());
} }
} // namespace blink } // namespace blink
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment