Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(772)

Unified Diff: Source/core/testing/Internals.cpp

Issue 662603002: [DevTools] Adjust svg elements highlight to the root FrameView origin. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Testing Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698