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

Unified Diff: Source/core/css/CSSParserMode.cpp

Issue 126443005: Use TreeScope::completeURL and baseURL instead of the Document versions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased again, passes tests Created 6 years, 11 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 | « Source/core/css/CSSParserMode.h ('k') | Source/core/css/resolver/FilterOperationResolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSParserMode.cpp
diff --git a/Source/core/css/CSSParserMode.cpp b/Source/core/css/CSSParserMode.cpp
index 1f6f6b24f5bddad1a7ac32adf572bcf669f1eb2b..f3d84789c0ba526961bf96bc44880c7ba37eaac3 100644
--- a/Source/core/css/CSSParserMode.cpp
+++ b/Source/core/css/CSSParserMode.cpp
@@ -28,6 +28,7 @@
#include "core/css/CSSParserMode.h"
#include "core/dom/Document.h"
+#include "core/dom/TreeScope.h"
#include "core/frame/Settings.h"
namespace WebCore {
@@ -39,12 +40,12 @@ CSSParserContext::CSSParserContext(CSSParserMode mode)
{
}
-CSSParserContext::CSSParserContext(const Document& document, const KURL& baseURL, const String& charset)
- : m_baseURL(baseURL.isNull() ? document.baseURL() : baseURL)
+CSSParserContext::CSSParserContext(const TreeScope& treeScope, const KURL& baseURL, const String& charset)
+ : m_baseURL(baseURL.isNull() ? treeScope.baseURL() : baseURL)
, m_charset(charset)
- , m_mode(document.inQuirksMode() ? HTMLQuirksMode : HTMLStandardMode)
- , m_isHTMLDocument(document.isHTMLDocument())
- , m_useLegacyBackgroundSizeShorthandBehavior(document.settings() ? document.settings()->useLegacyBackgroundSizeShorthandBehavior() : false)
+ , m_mode(treeScope.document().inQuirksMode() ? HTMLQuirksMode : HTMLStandardMode)
+ , m_isHTMLDocument(treeScope.document().isHTMLDocument())
+ , m_useLegacyBackgroundSizeShorthandBehavior(treeScope.document().settings() ? treeScope.document().settings()->useLegacyBackgroundSizeShorthandBehavior() : false)
{
}
« no previous file with comments | « Source/core/css/CSSParserMode.h ('k') | Source/core/css/resolver/FilterOperationResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698