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

Unified Diff: third_party/WebKit/Source/core/style/StyleDifference.h

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
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/StyleDifference.h
diff --git a/third_party/WebKit/Source/core/style/StyleDifference.h b/third_party/WebKit/Source/core/style/StyleDifference.h
index 1c622066d032d997f67430b0d18cdcf846974a0f..0f62f010dc2aa2b6a442d7d83e1aff3d7b047ed2 100644
--- a/third_party/WebKit/Source/core/style/StyleDifference.h
+++ b/third_party/WebKit/Source/core/style/StyleDifference.h
@@ -52,16 +52,7 @@ class StyleDifference {
}
bool needsFullPaintInvalidation() const {
- return m_paintInvalidationType > PaintInvalidationSelectionOnly;
- }
-
- // The text selection needs paint invalidation.
- bool needsPaintInvalidationSelection() const {
- return m_paintInvalidationType == PaintInvalidationSelectionOnly;
- }
- void setNeedsPaintInvalidationSelection() {
- if (!needsFullPaintInvalidation())
- m_paintInvalidationType = PaintInvalidationSelectionOnly;
+ return m_paintInvalidationType != NoPaintInvalidation;
}
// The object just needs to issue paint invalidations.
@@ -150,7 +141,6 @@ class StyleDifference {
private:
enum PaintInvalidationType {
NoPaintInvalidation,
- PaintInvalidationSelectionOnly,
PaintInvalidationObject,
PaintInvalidationSubtree,
};
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698