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

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

Issue 1455213006: [Not For Commit] Deferred building of PaintLayer filter-chain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index c2464543b3ab9518d900671862dcfd1dfa5be0ca..5090714e3bc5a23112f55c98474d77b675c2a8bf 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -1984,8 +1984,8 @@ void LayoutBox::inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect& p
if (hasReflection())
paintInvalidationRect.unite(reflectedRect(paintInvalidationRect));
- if (style()->hasFilter())
- paintInvalidationRect.expand(style()->filterOutsets());
+ if (layer() && layer()->hasFilter())
+ paintInvalidationRect.expand(layer()->filterOutsets());
}
void LayoutBox::invalidatePaintForOverhangingFloats(bool)

Powered by Google App Engine
This is Rietveld 408576698