| Index: Source/core/editing/EditingStyle.cpp
|
| diff --git a/Source/core/editing/EditingStyle.cpp b/Source/core/editing/EditingStyle.cpp
|
| index df173b043d2e177250cf07395071c0a2152a0d62..3ff89e6c19fa24a714cb1c06677bf612fe3dcd4f 100644
|
| --- a/Source/core/editing/EditingStyle.cpp
|
| +++ b/Source/core/editing/EditingStyle.cpp
|
| @@ -1301,7 +1301,8 @@ WritingDirection EditingStyle::textDirectionForSelection(const VisibleSelection&
|
| if (selection.isRange()) {
|
| end = selection.end().upstream();
|
|
|
| - Node* pastLast = Range::create(end.document(), position.parentAnchoredEquivalent(), end.parentAnchoredEquivalent())->pastLastNode();
|
| + ASSERT(end.document());
|
| + Node* pastLast = Range::create(*end.document(), position.parentAnchoredEquivalent(), end.parentAnchoredEquivalent())->pastLastNode();
|
| for (Node* n = node; n && n != pastLast; n = NodeTraversal::next(n)) {
|
| if (!n->isStyledElement())
|
| continue;
|
|
|