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

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

Issue 26444008: Remove several Page.h includes in preparation for removing page/ dependencies from the rest of core (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 79a84b8f9adfaa1d63cbec035bb4673e37bd25c0..7efc47d857326cda4840dd94cfe69bf9d09ef0cd 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -3697,7 +3697,7 @@ HTMLFrameOwnerElement* Document::ownerElement() const
String Document::cookie(ExceptionState& es) const
{
- if (page() && !page()->settings().cookieEnabled())
+ if (settings() && !settings()->cookieEnabled())
return String();
// FIXME: The HTML5 DOM spec states that this attribute can raise an
@@ -3724,7 +3724,7 @@ String Document::cookie(ExceptionState& es) const
void Document::setCookie(const String& value, ExceptionState& es)
{
- if (page() && !page()->settings().cookieEnabled())
+ if (settings() && !settings()->cookieEnabled())
return;
// FIXME: The HTML5 DOM spec states that this attribute can raise an

Powered by Google App Engine
This is Rietveld 408576698