Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 1647793002: Use ScrollAnchor in FrameView and PaintLayerScrollableArea. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@anchor-skeleton
Patch Set: address review comment Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index f8cf38c310b3f73df5b710af9a0c3c0ff083cff9..5d5a2c8feb28c8caadb00766693ca18ab703440e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1515,6 +1515,7 @@ protected:
void setContainsInlineWithOutlineAndContinuation(bool b) { m_bitfields.setContainsInlineWithOutlineAndContinuation(b); }
const LayoutRect& previousPaintInvalidationRect() const { return m_previousPaintInvalidationRect; }
+ bool scrollAnchoringEnabled() const;
private:
// This function generates a full invalidation, which
@@ -1586,6 +1587,7 @@ private:
const LayoutBoxModelObject* invalidatePaintRectangleInternal(const LayoutRect&) const;
static LayoutPoint uninitializedPaintOffset() { return LayoutPoint(LayoutUnit::max(), LayoutUnit::max()); }
+ void clearScrollAnchorIfNeeded() const;
RefPtr<ComputedStyle> m_style;

Powered by Google App Engine
This is Rietveld 408576698