Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index d00a9f1ba3b55d0baefd64061a830747ac46493c..31515dab7f6f9f29af4ecc64a5575c135df38a81 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -793,6 +793,17 @@ PassRefPtrWillBeRawPtr<ClientRectList> Internals::inspectorHighlightRects(Docume |
return ClientRectList::create(highlight.quads); |
} |
+String Internals::inspectorHighlightShape(Document *document, ExceptionState& exceptionState) |
+{ |
+ if (!document || !document->page()) { |
+ exceptionState.throwDOMException(InvalidAccessError, document ? "The document's Page cannot be retrieved." : "No context document can be obtained."); |
+ return String(); |
+ } |
+ |
+ RefPtr<JSONObject> object = document->page()->inspectorController().buildObjectForShapeOutside(); |
+ return object ? object->toJSONString(): String(); |
+} |
+ |
unsigned Internals::markerCountForNode(Node* node, const String& markerType, ExceptionState& exceptionState) |
{ |
if (!node) { |