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

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

Issue 1584493002: Skip PaintPhaseDescendantOutlinesOnly if no descendent outlines in the layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 9da07a0210cec65d327a9a99ef09cf9b1a8e2c6b..cc54da82c6af4e60832a94f13bf8c60a24e1fe44 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1385,6 +1385,12 @@ inline void LayoutObject::invalidateSelectionIfNeeded(const LayoutBoxModelObject
PaintInvalidationReason LayoutObject::invalidatePaintIfNeeded(PaintInvalidationState& paintInvalidationState, const LayoutBoxModelObject& paintInvalidationContainer)
{
+ if (styleRef().hasOutline()) {
+ PaintLayer* layer = enclosingLayer()->enclosingSelfPaintingLayer();
chrishtr 2016/01/12 23:52:24 This is a tree walk for every LayoutObject. PaintI
Xianzhu 2016/01/13 00:11:03 Not every LayoutObject, but only LayoutObject havi
chrishtr 2016/01/13 05:01:17 I'll wait for that patch first then.
+ if (layer->layoutObject() != this)
chrishtr 2016/01/12 23:52:24 Why this conditional?
Xianzhu 2016/01/13 00:11:03 We paint self outline and child outlines in differ
+ layer->setNeedsPaintPhaseChildOutlines();
+ }
+
LayoutView* v = view();
if (v->document().printing())
return PaintInvalidationNone; // Don't invalidate paints if we're printing.

Powered by Google App Engine
This is Rietveld 408576698