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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 2774763003: needsPaintInvalidation() should not return true for selection. (Closed)
Patch Set: Created 3 years, 9 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/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index e4f24e005bee513d9a4e1a402542a26e95300fbe..da2b9b77e1cc628ceec8c8a291e5d6fa8e545680 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -547,7 +547,7 @@ StyleDifference ComputedStyle::visualInvalidationDiff(
if (m_svgStyle.get() != other.m_svgStyle.get())
diff = m_svgStyle->diff(other.m_svgStyle.get());
- if ((!diff.needsFullLayout() || !diff.needsPaintInvalidation()) &&
+ if ((!diff.needsFullLayout() || !diff.needsFullPaintInvalidation()) &&
diffNeedsFullLayoutAndPaintInvalidation(other)) {
diff.setNeedsFullLayout();
diff.setNeedsPaintInvalidationObject();
@@ -1077,7 +1077,7 @@ void ComputedStyle::updatePropertySpecificDifferences(
if (!m_surround->border.visualOverflowEqual(other.m_surround->border))
diff.setNeedsRecomputeOverflow();
- if (!diff.needsPaintInvalidation()) {
+ if (!diff.needsFullPaintInvalidation()) {
if (m_styleInheritedData->color != other.m_styleInheritedData->color ||
m_styleInheritedData->visitedLinkColor !=
other.m_styleInheritedData->visitedLinkColor ||
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp ('k') | third_party/WebKit/Source/core/style/StyleDifference.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698