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

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

Issue 2727843004: needsPaintInvalidation() should not return true for selection. (Closed)
Patch Set: Renaming. Created 3 years, 10 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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 3d8e6aff6c568f4f62405a253c1bb7be86cca4a2..518b58241a1efde6ecd32c490278996d2a1551f7 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -190,7 +190,7 @@ void LayoutBox::styleWillChange(StyleDifference diff,
// The background of the root element or the body element could propagate up
// to the canvas. Just dirty the entire canvas when our style changes
// substantially.
- if ((diff.needsPaintInvalidation() || diff.needsLayout()) && node() &&
+ if ((diff.needsFullPaintInvalidation() || diff.needsLayout()) && node() &&
(isHTMLHtmlElement(*node()) || isHTMLBodyElement(*node()))) {
view()->setShouldDoFullPaintInvalidation();
@@ -283,7 +283,7 @@ void LayoutBox::styleDidChange(StyleDifference diff,
}
// Our opaqueness might have changed without triggering layout.
- if (diff.needsPaintInvalidation()) {
+ if (diff.needsFullPaintInvalidation()) {
LayoutObject* parentToInvalidate = parent();
for (unsigned i = 0;
i < backgroundObscurationTestMaxDepth && parentToInvalidate; ++i) {

Powered by Google App Engine
This is Rietveld 408576698