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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js

Issue 2512353002: [DevTools] Refactor Linkifier to unify link processing. (Closed)
Patch Set: rebased Created 4 years, 1 month 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: third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js
index baba1f2760640f74562a85505056a301a2bdfa71..49fd944bd9ee92fbba5d2fcd7a2945e15898670d 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js
@@ -402,7 +402,8 @@ function extractLinkText(element)
if (!anchor)
return element.textContent;
var anchorText = anchor.textContent;
- var uiLocation = anchor[Components.Linkifier._uiLocationSymbol];
+ var info = Components.Linkifier._linkInfo(anchor);
+ var uiLocation = info && info.uiLocation;
var anchorTarget = uiLocation ? (uiLocation.uiSourceCode.name() + ":" + (uiLocation.lineNumber + 1) + ":" + (uiLocation.columnNumber + 1)) : "";
return anchorText + " -> " + anchorTarget;
}

Powered by Google App Engine
This is Rietveld 408576698