Chromium Code Reviews| 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()) |