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

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

Issue 799073004: Remove dead code from StyleSheetContents and CSSStyleSheet. (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/css/CSSTestHelper.cpp ('k') | sky/engine/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »
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 dc576297bc4c7c7bb1e706dc0b90d8691c697ad8..63748dfd90b2d09c5687c2c8271d46d4a8c09a8e 100644
--- a/sky/engine/core/css/StyleSheetContents.h
+++ b/sky/engine/core/css/StyleSheetContents.h
@@ -45,11 +45,7 @@ class StyleSheetContents : public RefCounted<StyleSheetContents> {
public:
static PassRefPtr<StyleSheetContents> create(const CSSParserContext& context)
{
- return adoptRef(new StyleSheetContents(String(), context));
- }
- static PassRefPtr<StyleSheetContents> create(const String& originalURL, const CSSParserContext& context)
- {
- return adoptRef(new StyleSheetContents(originalURL, context));
+ return adoptRef(new StyleSheetContents(context));
}
~StyleSheetContents();
@@ -59,14 +55,10 @@ public:
bool parseString(const String&);
bool parseStringAtPosition(const String&, const TextPosition&, bool);
- bool isCacheable() const;
-
bool hasSingleOwnerNode() const;
Node* singleOwnerNode() const;
Document* singleOwnerDocument() const;
- KURL completeURL(const String& url) const;
-
void parserAppendRule(PassRefPtr<StyleRuleBase>);
void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; }
@@ -75,12 +67,6 @@ public:
// Rules other than @charset and @import.
const Vector<RefPtr<StyleRuleBase> >& childRules() const { return m_childRules; }
- // Note that href is the URL that started the redirect chain that led to
- // this style sheet. This property probably isn't useful for much except
- // the JavaScript binding (which needs to use this value for security).
- String originalURL() const { return m_originalURL; }
- const KURL& baseURL() const { return m_parserContext.baseURL(); }
-
unsigned ruleCount() const;
StyleRuleBase* ruleAt(unsigned index) const;
@@ -102,7 +88,7 @@ public:
void clearRuleSet();
private:
- StyleSheetContents(const String& originalURL, const CSSParserContext&);
+ explicit StyleSheetContents(const CSSParserContext&);
void notifyRemoveFontFaceRule(const StyleRuleFontFace*);
@@ -112,7 +98,6 @@ private:
bool m_hasMediaQueries : 1;
bool m_hasSingleOwnerDocument : 1;
- String m_originalURL;
OwnPtr<RuleSet> m_ruleSet;
Vector<RefPtr<StyleRuleBase> > m_childRules;
CSSParserContext m_parserContext;
« no previous file with comments | « sky/engine/core/css/CSSTestHelper.cpp ('k') | sky/engine/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698