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

Unified Diff: sky/engine/core/css/StyleSheetContents.h

Issue 799143002: Remove single client special cases for StyleSheetContents. (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 | « no previous file | sky/engine/core/css/StyleSheetContents.cpp » ('j') | sky/engine/core/frame/UseCounter.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/StyleSheetContents.h
diff --git a/sky/engine/core/css/StyleSheetContents.h b/sky/engine/core/css/StyleSheetContents.h
index 63748dfd90b2d09c5687c2c8271d46d4a8c09a8e..2fff934503bc91d93445e6e611c241694706daec 100644
--- a/sky/engine/core/css/StyleSheetContents.h
+++ b/sky/engine/core/css/StyleSheetContents.h
@@ -55,15 +55,9 @@ public:
bool parseString(const String&);
bool parseStringAtPosition(const String&, const TextPosition&, bool);
- bool hasSingleOwnerNode() const;
- Node* singleOwnerNode() const;
- Document* singleOwnerDocument() const;
-
void parserAppendRule(PassRefPtr<StyleRuleBase>);
void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; }
- void clearRules();
-
// Rules other than @charset and @import.
const Vector<RefPtr<StyleRuleBase> >& childRules() const { return m_childRules; }
@@ -74,10 +68,6 @@ public:
void registerClient(CSSStyleSheet*);
void unregisterClient(CSSStyleSheet*);
- size_t clientSize() const { return m_loadingClients.size() + m_completedClients.size(); }
- bool hasOneClient() const { return clientSize() == 1; }
-
- void removeSheetFromCache(Document*);
void setHasMediaQueries();
bool hasMediaQueries() const { return m_hasMediaQueries; }
@@ -92,11 +82,8 @@ private:
void notifyRemoveFontFaceRule(const StyleRuleFontFace*);
- Document* clientSingleOwnerDocument() const;
-
bool m_usesRemUnits : 1;
bool m_hasMediaQueries : 1;
- bool m_hasSingleOwnerDocument : 1;
OwnPtr<RuleSet> m_ruleSet;
Vector<RefPtr<StyleRuleBase> > m_childRules;
« no previous file with comments | « no previous file | sky/engine/core/css/StyleSheetContents.cpp » ('j') | sky/engine/core/frame/UseCounter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698