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

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: 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
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..4ab8f1a5a82b6bf72a97bca4e0b32112cc36ef2a 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->textPosition();
}
StyleElement::~StyleElement()

Powered by Google App Engine
This is Rietveld 408576698