diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-24 12:15:48 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-28 13:30:04 +0000 |
commit | b014812705fc80bff0a5c120dfcef88f349816dc (patch) | |
tree | 25a2e2d9fa285f1add86aa333389a839f81a39ae /chromium/third_party/blink/renderer/core/layout/ng/ng_physical_box_fragment.h | |
parent | 9f4560b1027ae06fdb497023cdcaf91b8511fa74 (diff) | |
download | qtwebengine-chromium-b014812705fc80bff0a5c120dfcef88f349816dc.tar.gz |
BASELINE: Update Chromium to 68.0.3440.125
Change-Id: I23f19369e01f688e496f5bf179abb521ad73874f
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/ng/ng_physical_box_fragment.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/layout/ng/ng_physical_box_fragment.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/ng/ng_physical_box_fragment.h b/chromium/third_party/blink/renderer/core/layout/ng/ng_physical_box_fragment.h index 6bc38d92972..f2f8a3b88c7 100644 --- a/chromium/third_party/blink/renderer/core/layout/ng/ng_physical_box_fragment.h +++ b/chromium/third_party/blink/renderer/core/layout/ng/ng_physical_box_fragment.h @@ -9,6 +9,7 @@ #include "third_party/blink/renderer/core/layout/ng/geometry/ng_box_strut.h" #include "third_party/blink/renderer/core/layout/ng/inline/ng_baseline.h" #include "third_party/blink/renderer/core/layout/ng/ng_physical_container_fragment.h" +#include "third_party/blink/renderer/platform/scroll/scroll_types.h" namespace blink { @@ -18,6 +19,7 @@ class CORE_EXPORT NGPhysicalBoxFragment final // This modifies the passed-in children vector. NGPhysicalBoxFragment(LayoutObject* layout_object, const ComputedStyle& style, + NGStyleVariant style_variant, NGPhysicalSize size, Vector<scoped_refptr<NGPhysicalFragment>>& children, const NGPixelSnappedPhysicalBoxStrut& padding, @@ -40,6 +42,17 @@ class CORE_EXPORT NGPhysicalBoxFragment final bool HasOverflowClip() const; bool ShouldClipOverflow() const; + NGPhysicalOffsetRect ScrollableOverflow() const; + + // TODO(layout-dev): These three methods delegate to legacy layout for now, + // update them to use LayoutNG based overflow information from the fragment + // and change them to use NG geometry types once LayoutNG supports overflow. + LayoutRect OverflowClipRect( + const LayoutPoint& location, + OverlayScrollbarClipBehavior = kIgnorePlatformOverlayScrollbarSize) const; + IntSize ScrolledContentOffset() const; + LayoutSize ScrollSize() const; + // Visual rect of this box in the local coordinate. Does not include children // even if they overflow this box. NGPhysicalOffsetRect SelfVisualRect() const; @@ -50,13 +63,14 @@ class CORE_EXPORT NGPhysicalBoxFragment final void AddSelfOutlineRects(Vector<LayoutRect>*, const LayoutPoint& additional_offset) const; - PositionWithAffinity PositionForPoint(const NGPhysicalOffset&) const override; + UBiDiLevel BidiLevel() const override; scoped_refptr<NGPhysicalFragment> CloneWithoutOffset() const; private: Vector<NGBaseline> baselines_; NGPixelSnappedPhysicalBoxStrut padding_; + NGPhysicalOffsetRect descendant_outlines_; }; DEFINE_TYPE_CASTS(NGPhysicalBoxFragment, |