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

Unified Diff: sky/engine/core/html/HTMLStyleElement.h

Issue 788113002: Simplify HTMLStyleElement. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/StyleEngine.cpp ('k') | sky/engine/core/html/HTMLStyleElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLStyleElement.h
diff --git a/sky/engine/core/html/HTMLStyleElement.h b/sky/engine/core/html/HTMLStyleElement.h
index fb7fb551b728ae1d49f54ae49a8a0d9aef549160..5c3ddd0dca10ffec7056c3c1e25055cdc14ac7ee 100644
--- a/sky/engine/core/html/HTMLStyleElement.h
+++ b/sky/engine/core/html/HTMLStyleElement.h
@@ -31,14 +31,11 @@ namespace blink {
class ContainerNode;
class Document;
-class Element;
-class HTMLStyleElement;
-class TreeScope;
class HTMLStyleElement final : public HTMLElement {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtr<HTMLStyleElement> create(Document&, bool createdByParser);
+ static PassRefPtr<HTMLStyleElement> create(Document&);
virtual ~HTMLStyleElement();
ContainerNode* scopingNode();
@@ -49,7 +46,7 @@ public:
const AtomicString& type() const;
private:
- HTMLStyleElement(Document&, bool createdByParser);
+ HTMLStyleElement(Document&);
void createSheet();
void process();
@@ -64,14 +61,10 @@ private:
virtual void removedFrom(ContainerNode*) override;
virtual void childrenChanged(const ChildrenChange&) override;
- virtual void finishParsingChildren() override;
-
RefPtr<CSSStyleSheet> m_sheet;
- bool m_createdByParser : 1;
bool m_loading : 1;
bool m_registeredAsCandidate : 1;
- TextPosition m_startPosition;
};
} // namespace blink
« no previous file with comments | « sky/engine/core/dom/StyleEngine.cpp ('k') | sky/engine/core/html/HTMLStyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698