| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index b98434a4f89d5d3944e552b9fe5c4b9236ed41e7..b240f4c0ce28d1df11c6c105a0e2023d79263d8b 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1487,6 +1487,16 @@ void Internals::setInspectorResourcesDataSizeLimits(int maximumResourcesContentS
|
| page->inspectorController().setResourcesDataSizeLimitsFromInternals(maximumResourcesContentSize, maximumSingleResourceContentSize);
|
| }
|
|
|
| +String Internals::getInspectorHighlightJSON(Node* node, ExceptionState& exceptionState)
|
| +{
|
| + Page* page = contextDocument()->frame()->page();
|
| + if (!page) {
|
| + exceptionState.throwDOMException(InvalidAccessError, "No page can be obtained from the current context document.");
|
| + return String();
|
| + }
|
| + return page->inspectorController().getHighlightJSONForNode(node);
|
| +}
|
| +
|
| bool Internals::hasGrammarMarker(Document* document, int from, int length)
|
| {
|
| ASSERT(document);
|
|
|