| Index: third_party/WebKit/Source/core/testing/Internals.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| index c13b7b919ecaf60e10933212f232a8481f64116a..f936f4298b2333945f2f2bcbe047ea37128e61c6 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -1041,6 +1041,9 @@ String Internals::markerDescriptionForNode(Node* node,
|
|
|
| void Internals::addTextMatchMarker(const Range* range, bool isActive) {
|
| DCHECK(range);
|
| + if (!range->ownerDocument().view())
|
| + return;
|
| +
|
| range->ownerDocument().updateStyleAndLayoutIgnorePendingStylesheets();
|
| range->ownerDocument().markers().addTextMatchMarker(EphemeralRange(range),
|
| isActive);
|
|
|