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

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

Issue 2647533002: Force compositing inputs to be clean for getBoundingClientRect (Closed)
Patch Set: For discussion; only do compositing update when in sticky subtree Created 3 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/LayoutBoxModelObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
index 09662931475073ab2077ff2c2f53c418e49a8b56..3c6a77bacc6e82222d5c2a0ed3dd9530784ceee3 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
@@ -178,6 +178,8 @@ class CORE_EXPORT LayoutBoxModelObject : public LayoutObject {
PaintLayer* layer() const { return m_layer.get(); }
PaintLayerScrollableArea* getScrollableArea() const;
+ bool isInStickySubtree() const { return m_isInStickySubtree; }
+
virtual void updateFromStyle();
// The type of PaintLayer to instantiate. Any value returned from this
@@ -526,6 +528,8 @@ class CORE_EXPORT LayoutBoxModelObject : public LayoutObject {
std::unique_ptr<PaintLayer> m_layer;
std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData;
+
+ bool m_isInStickySubtree;
};
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject());

Powered by Google App Engine
This is Rietveld 408576698