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

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

Issue 1585823002: Improve performance when calling PaintLayer::setNeedsRepaint() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@RemoveVisualRect
Patch Set: 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/PaintInvalidationState.h
diff --git a/third_party/WebKit/Source/core/layout/PaintInvalidationState.h b/third_party/WebKit/Source/core/layout/PaintInvalidationState.h
index 22962f2a486d888b8114b711d19567608f9b7950..a44be56a3706bd3ac35ef4e8548e732a73962eae 100644
--- a/third_party/WebKit/Source/core/layout/PaintInvalidationState.h
+++ b/third_party/WebKit/Source/core/layout/PaintInvalidationState.h
@@ -16,6 +16,7 @@ class LayoutBoxModelObject;
class LayoutObject;
class LayoutSVGModelObject;
class LayoutView;
+class PaintLayer;
class PaintInvalidationState {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
@@ -58,6 +59,8 @@ public:
bool viewClippingAndScrollOffsetDisabled() const { return m_viewClippingAndScrollOffsetDisabled; }
void setViewClippingAndScrollOffsetDisabled(bool b) { m_viewClippingAndScrollOffsetDisabled = b; }
+ PaintLayer& enclosingLayer() const { return m_enclosingLayer; }
+
private:
PaintInvalidationState(const LayoutView&, Vector<LayoutObject*>& pendingDelayedPaintInvalidations, PaintInvalidationState* ownerPaintInvalidationState);
@@ -85,6 +88,8 @@ private:
AffineTransform m_svgTransform;
Vector<LayoutObject*>& m_pendingDelayedPaintInvalidations;
+
+ PaintLayer& m_enclosingLayer;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698