Chromium Code Reviews| Index: Source/core/editing/VisibleSelection.cpp |
| diff --git a/Source/core/editing/VisibleSelection.cpp b/Source/core/editing/VisibleSelection.cpp |
| index 86c8475baae03cfff83551a44e30657711ac5448..e004d74c8d4d4cae8e5bdf3a468bb1e6fd789fa2 100644 |
| --- a/Source/core/editing/VisibleSelection.cpp |
| +++ b/Source/core/editing/VisibleSelection.cpp |
| @@ -752,7 +752,7 @@ Element* VisibleSelection::rootEditableElement() const |
| Node* VisibleSelection::nonBoundaryShadowTreeRootNode() const |
| { |
| - return start().deprecatedNode() ? start().deprecatedNode()->nonBoundaryShadowTreeRootNode() : 0; |
| + return start().deprecatedNode() && !start().deprecatedNode()->isShadowRoot() ? start().deprecatedNode()->nonBoundaryShadowTreeRootNode() : 0; |
|
yosin_UTC9
2015/01/14 01:33:44
I think |start()| should not point to shadow root.
keishi
2015/01/14 05:04:51
I have confirmed that this is what's happening.
1.
|
| } |
| VisibleSelection::ChangeObserver::ChangeObserver() |