diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-16 11:45:35 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-17 08:59:23 +0000 |
commit | 552906b0f222c5d5dd11b9fd73829d510980461a (patch) | |
tree | 3a11e6ed0538a81dd83b20cf3a4783e297f26d91 /chromium/third_party/blink/renderer/core/editing/finder/find_in_page_coordinates.cc | |
parent | 1b05827804eaf047779b597718c03e7d38344261 (diff) | |
download | qtwebengine-chromium-552906b0f222c5d5dd11b9fd73829d510980461a.tar.gz |
BASELINE: Update Chromium to 83.0.4103.122
Change-Id: Ie3a82f5bb0076eec2a7c6a6162326b4301ee291e
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
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() |