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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerResourceInfo.cpp

Issue 2581243003: [SPInvalidation] Update paint properties when SVG resource change (Closed)
Patch Set: Created 4 years 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/PaintLayerResourceInfo.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerResourceInfo.cpp b/third_party/WebKit/Source/core/paint/PaintLayerResourceInfo.cpp
index a41e6f87f67ef3bfa9abe0db8fd50f4542ef0dfa..5bbcaca1e7add64cbfc22d9debb6353c0131edf6 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerResourceInfo.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerResourceInfo.cpp
@@ -51,6 +51,7 @@ void PaintLayerResourceInfo::resourceContentChanged() {
DCHECK(m_layer);
LayoutObject* layoutObject = m_layer->layoutObject();
layoutObject->setShouldDoFullPaintInvalidation();
+ layoutObject->setNeedsPaintPropertyUpdate();
pdr. 2016/12/16 21:13:37 Can you add a comment here and below: // The effec
Xianzhu 2016/12/16 23:01:43 Done.
const ComputedStyle& style = layoutObject->styleRef();
if (style.hasFilter() && style.filter().hasReferenceFilter())
invalidateFilterChain();
@@ -60,6 +61,7 @@ void PaintLayerResourceInfo::resourceElementChanged() {
DCHECK(m_layer);
LayoutObject* layoutObject = m_layer->layoutObject();
layoutObject->setShouldDoFullPaintInvalidation();
+ layoutObject->setNeedsPaintPropertyUpdate();
const ComputedStyle& style = layoutObject->styleRef();
if (style.hasFilter() && style.filter().hasReferenceFilter())
invalidateFilterChain();

Powered by Google App Engine
This is Rietveld 408576698