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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2742573005: Avoid to include IDL-generated headers from EventTarget.h and Node.h (Closed)
Patch Set: . Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 39ce0cb0dbac74e1fd8cd706b5aa4f2fa15390d0..8f94337853bf0c44fb09989987ec28779edb7af1 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -5711,6 +5711,16 @@ void Document::updateSecurityOrigin(PassRefPtr<SecurityOrigin> origin) {
didUpdateSecurityOrigin();
}
+String Document::origin() const {
+ return getSecurityOrigin()->toString();
+}
+
+String Document::suborigin() const {
+ return getSecurityOrigin()->hasSuborigin()
+ ? getSecurityOrigin()->suborigin()->name()
+ : String();
+}
+
void Document::didUpdateSecurityOrigin() {
if (!m_frame)
return;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698