| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index be4d82ff0d3d3cd3d7727e812ae1c701088ec303..8994ce183d28c75f2528f28d51520aef925ba392 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1487,6 +1487,17 @@ void Internals::setInspectorResourcesDataSizeLimits(int maximumResourcesContentS
|
| page->inspectorController().setResourcesDataSizeLimitsFromInternals(maximumResourcesContentSize, maximumSingleResourceContentSize);
|
| }
|
|
|
| +String Internals::inspectorHighlightJSON(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();
|
| + }
|
| + RefPtr<JSONObject> json(page->inspectorController().highlightJSONForNode(node));
|
| + return json->toPrettyJSONString();
|
| +}
|
| +
|
| bool Internals::hasGrammarMarker(Document* document, int from, int length)
|
| {
|
| ASSERT(document);
|
|
|