| Index: Source/core/editing/htmlediting.cpp
|
| diff --git a/Source/core/editing/htmlediting.cpp b/Source/core/editing/htmlediting.cpp
|
| index 858d2e4a51e38575cdd74a96aad6ef3aa0aaad5c..7a405ce2b5fd92769277d9c8d90321118739baf6 100644
|
| --- a/Source/core/editing/htmlediting.cpp
|
| +++ b/Source/core/editing/htmlediting.cpp
|
| @@ -268,8 +268,8 @@ VisiblePosition firstEditablePositionAfterPositionInRoot(const Position& positio
|
|
|
| Position p = position;
|
|
|
| - if (&position.deprecatedNode()->treeScope() != &highestRoot->treeScope()) {
|
| - Node* shadowAncestor = highestRoot->treeScope().ancestorInThisScope(p.deprecatedNode());
|
| + if (position.deprecatedNode()->treeScope() != highestRoot->treeScope()) {
|
| + Node* shadowAncestor = highestRoot->treeScope()->ancestorInThisScope(p.deprecatedNode());
|
| if (!shadowAncestor)
|
| return VisiblePosition();
|
|
|
| @@ -293,8 +293,8 @@ VisiblePosition lastEditablePositionBeforePositionInRoot(const Position& positio
|
|
|
| Position p = position;
|
|
|
| - if (&position.deprecatedNode()->treeScope() != &highestRoot->treeScope()) {
|
| - Node* shadowAncestor = highestRoot->treeScope().ancestorInThisScope(p.deprecatedNode());
|
| + if (position.deprecatedNode()->treeScope() != highestRoot->treeScope()) {
|
| + Node* shadowAncestor = highestRoot->treeScope()->ancestorInThisScope(p.deprecatedNode());
|
| if (!shadowAncestor)
|
| return VisiblePosition();
|
|
|
|
|