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

Unified Diff: third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h

Issue 2662313003: Invalidate subsequence caching & empty paint phases if clips changed. (Closed)
Patch Set: 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/paint/PrePaintTreeWalk.h
diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h
index 424af9294452ace0bbedbd08bf2d9ea1499cabaa..1cb45093324e2b82a408d7e4ddfebc2a90b593ba 100644
--- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h
+++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h
@@ -5,6 +5,7 @@
#ifndef PrePaintTreeWalk_h
#define PrePaintTreeWalk_h
+#include "core/layout/ClipRect.h"
#include "core/paint/PaintInvalidator.h"
#include "core/paint/PaintPropertyTreeBuilder.h"
@@ -21,15 +22,28 @@ struct PrePaintTreeWalkContext;
class PrePaintTreeWalk {
public:
PrePaintTreeWalk(GeometryMapper& geometryMapper)
- : m_paintInvalidator(geometryMapper) {}
+ : m_paintInvalidator(geometryMapper), m_geometryMapper(geometryMapper) {}
void walk(FrameView& rootFrame);
private:
void walk(FrameView&, const PrePaintTreeWalkContext&);
void walk(const LayoutObject&, const PrePaintTreeWalkContext&);
+ void invalidatePaintLayerProperties(
+ const LayoutObject&,
+ const PaintLayer& ancestorTransformedOrRootPaintLayer,
+ const PaintPropertyTreeBuilderContext&);
+
+ ClipRect clipRectForContext(
+ const PaintPropertyTreeBuilderContext::ContainingBlockContext&,
+ const EffectPaintPropertyNode*,
+ const PropertyTreeState& ancestorState,
+ const LayoutPoint& ancestorPaintOffset,
+ bool& hasClip);
+
PaintPropertyTreeBuilder m_propertyTreeBuilder;
PaintInvalidator m_paintInvalidator;
+ GeometryMapper& m_geometryMapper;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698