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

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

Issue 1459953002: Fix the reference box computation for CSS filter effects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TODO per review 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 80c7de4745b6e5ccc483acaf4bcc33de4f2a9ce3..1f946b5a9a636e8ab66cff6cb8d1fab02e58c5b7 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -1949,8 +1949,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