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

Unified Diff: sky/engine/core/dom/StyleElement.cpp

Issue 723583002: Make the parser an implementation detail of the Document (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rename textPosition to parserPosition Created 6 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
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/html/imports/HTMLImportLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/StyleElement.cpp
diff --git a/sky/engine/core/dom/StyleElement.cpp b/sky/engine/core/dom/StyleElement.cpp
index b4e856349e8903b323b3e495fd31e6537b8c48d6..1a114b614b82f20576e055f8ed449ecb4a3864ce 100644
--- a/sky/engine/core/dom/StyleElement.cpp
+++ b/sky/engine/core/dom/StyleElement.cpp
@@ -47,8 +47,8 @@ StyleElement::StyleElement(Document* document, bool createdByParser)
, m_registeredAsCandidate(false)
, m_startPosition(TextPosition::belowRangePosition())
{
- if (createdByParser && document && document->scriptableDocumentParser())
- m_startPosition = document->scriptableDocumentParser()->textPosition();
+ if (createdByParser)
+ m_startPosition = document->parserPosition();
}
StyleElement::~StyleElement()
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/html/imports/HTMLImportLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698