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

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

Issue 1407543003: Preliminary paint property walk implementation for SPv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert forAllFrameViews change in FrameView.cpp. I don't know what I was thinking. Created 5 years, 2 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 b05e5a6c709c96c38e40bf50cc26d365df6c44cc..593d42760b122c60da74ad94d3cb441493d25615 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -60,14 +60,15 @@ class Document;
class HitTestLocation;
class HitTestResult;
class InlineBox;
-class PseudoStyleRequest;
class LayoutBoxModelObject;
class LayoutBlock;
class LayoutFlowThread;
class LayoutGeometryMap;
-class PaintLayer;
class LayoutMultiColumnSpannerPlaceholder;
class LayoutView;
+class ObjectPaintProperties;
+class PaintLayer;
+class PseudoStyleRequest;
class TransformState;
struct PaintInfo;
@@ -353,6 +354,14 @@ public:
// Sets the parent of this object but doesn't add it as a child of the parent.
void setDangerousOneWayParent(LayoutObject*);
+ // For SPv2 only. The ObjectPaintProperties structure holds references to the
+ // property tree nodes that are created by the layout object for painting.
+ // The property nodes are only updated during InUpdatePaintProperties phase
+ // of the document lifecycle and shall remain immutable during other phases.
+ ObjectPaintProperties* objectPaintProperties() const;
+ ObjectPaintProperties& ensureObjectPaintProperties();
+ void clearObjectPaintProperties();
+
private:
//////////////////////////////////////////
// Helper functions. Dangerous to use!
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698