diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/editing/finder/find_in_page_coordinates.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/editing/finder/find_in_page_coordinates.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chromium/third_party/blink/renderer/core/editing/finder/find_in_page_coordinates.cc b/chromium/third_party/blink/renderer/core/editing/finder/find_in_page_coordinates.cc index 46f2f6b312d..f0127d5567c 100644 --- a/chromium/third_party/blink/renderer/core/editing/finder/find_in_page_coordinates.cc +++ b/chromium/third_party/blink/renderer/core/editing/finder/find_in_page_coordinates.cc @@ -49,12 +49,12 @@ namespace blink { static const LayoutBlock* EnclosingScrollableAncestor( const LayoutObject* layout_object) { - DCHECK(!layout_object->IsLayoutView()); + DCHECK(!IsA<LayoutView>(layout_object)); // Trace up the containingBlocks until we reach either the layoutObject view // or a scrollable object. const LayoutBlock* container = layout_object->ContainingBlock(); - while (!container->HasOverflowClip() && !container->IsLayoutView()) + while (!container->HasOverflowClip() && !IsA<LayoutView>(container)) container = container->ContainingBlock(); return container; } @@ -64,7 +64,7 @@ static FloatRect ToNormalizedRect(const FloatRect& absolute_rect, const LayoutBlock* container) { DCHECK(layout_object); - DCHECK(container || layout_object->IsLayoutView()); + DCHECK(container || IsA<LayoutView>(layout_object)); if (!container) return FloatRect(); @@ -111,7 +111,7 @@ FloatRect FindInPageRectFromAbsoluteRect( for (const LayoutBox* layout_object = base_container; layout_object;) { // Go up the layout tree until we reach the root of the current frame (the // LayoutView). - while (!layout_object->IsLayoutView()) { + while (!IsA<LayoutView>(layout_object)) { const LayoutBlock* container = EnclosingScrollableAncestor(layout_object); // Compose the normalized rects. @@ -125,7 +125,7 @@ FloatRect FindInPageRectFromAbsoluteRect( layout_object = container; } - DCHECK(layout_object->IsLayoutView()); + DCHECK(IsA<LayoutView>(layout_object)); // Jump to the layoutObject owning the frame, if any. layout_object = layout_object->GetFrame() |