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

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

Issue 270283007: Implement the logic to find the correct <link> for Manifest in Document. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@link_manifest
Patch Set: Created 6 years, 7 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 6e2018a33bcb6c76b552a2ab1fc4179b88f4c116..b995295dc205c5aec1cc3bd146d9155c7c617b2a 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -2358,4 +2358,14 @@ String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma
return surroundingText.content();
}
+HTMLLinkElement* Internals::linkManifest(Document* document, ExceptionState& exceptionState)
+{
+ if (!document) {
+ exceptionState.throwDOMException(InvalidAccessError, "No context document is available.");
+ return 0;
+ }
+
+ return document->linkManifest();
+}
abarth-chromium 2014/05/09 03:06:00 I'd skip adding this function. We'll probably wan
+
}

Powered by Google App Engine
This is Rietveld 408576698