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

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

Issue 2732113002: Move ::selection invalidation to applyPseudoStyleChanges. (Closed)
Patch Set: Rebased 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 ad198f684af4f2403f66bfea1c444ea193bfde7a..e92858c6b87ef2add07cd31912540874787b5017 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -580,8 +580,6 @@ StyleDifference ComputedStyle::visualInvalidationDiff(
diff.setNeedsPaintInvalidationSubtree();
else if (diffNeedsPaintInvalidationObject(other))
diff.setNeedsPaintInvalidationObject();
- else if (diffNeedsPaintInvalidationSelection(other))
- diff.setNeedsPaintInvalidationSelection();
updatePropertySpecificDifferences(other, diff);
@@ -1028,12 +1026,6 @@ bool ComputedStyle::diffNeedsPaintInvalidationObjectForPaintImage(
return false;
}
-bool ComputedStyle::diffNeedsPaintInvalidationSelection(
- const ComputedStyle& other) const {
- return hasPseudoStyle(PseudoIdSelection) ||
- other.hasPseudoStyle(PseudoIdSelection);
-}
-
void ComputedStyle::updatePropertySpecificDifferences(
const ComputedStyle& other,
StyleDifference& diff) const {
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/core/style/StyleDifference.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698