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

Unified Diff: Source/core/layout/LayoutObject.cpp

Issue 1018503004: Invalidate DisplayItemClient when selection state changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | « Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index 2fa594d795b58033d5ff04abe59b35de5c51df22..1f28cd8a7fa190c8435d0533bd0372875159d123 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -3015,6 +3015,16 @@ CursorDirective LayoutObject::getCursor(const LayoutPoint&, Cursor&) const
return SetCursorBasedOnStyle;
}
+void LayoutObject::setSelectionState(SelectionState state)
+{
+ if (selectionState() == state)
+ return;
+
+ m_bitfields.setSelectionState(state);
+ invalidateDisplayItemClient(DisplayItemClientData(*this));
Xianzhu 2015/03/18 16:10:07 Alternative way is to call 'if slimmingPaintEnable
+}
+
+
bool LayoutObject::canUpdateSelectionOnRootLineBoxes() const
{
if (needsLayout())
« no previous file with comments | « Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698