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

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

Issue 2872423002: Tweak PaintInvalidationReasons (Closed)
Patch Set: Rebaseline-cl Created 3 years, 7 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/LayoutBoxModelObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
index e8aab8d30d64b56c8f869bc292201f203725f280..eee78fdba377b3a5aa7c4f5f06799350ca5a7df3 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
@@ -402,10 +402,11 @@ void LayoutBoxModelObject::StyleDidChange(StyleDifference diff,
Style()->GetPosition() == EPosition::kFixed;
bool old_style_is_fixed_position =
old_style->GetPosition() == EPosition::kFixed;
- if (new_style_is_fixed_position != old_style_is_fixed_position)
+ if (new_style_is_fixed_position != old_style_is_fixed_position) {
ObjectPaintInvalidator(*this)
.InvalidateDisplayItemClientsIncludingNonCompositingDescendants(
- kPaintInvalidationStyleChange);
+ PaintInvalidationReason::kStyle);
+ }
}
// The used style for body background may change due to computed style change
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698