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

Unified Diff: sky/engine/core/css/CSSStyleSheet.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 | « no previous file | sky/engine/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/CSSStyleSheet.h
diff --git a/sky/engine/core/css/CSSStyleSheet.h b/sky/engine/core/css/CSSStyleSheet.h
index 6519f6e03acea5bbea28d34e2f8695735fe64e8d..0d2615d687bc17aa6d1d5f3b60e3082aa2f629ae 100644
--- a/sky/engine/core/css/CSSStyleSheet.h
+++ b/sky/engine/core/css/CSSStyleSheet.h
@@ -27,24 +27,17 @@
namespace blink {
-class BisonCSSParser;
class CSSStyleSheet;
class Document;
-class ExceptionState;
class KURL;
class MediaQuerySet;
class Node;
class StyleSheetContents;
-enum StyleSheetUpdateType {
- PartialRuleUpdate,
- EntireStyleSheetUpdate
-};
-
class CSSStyleSheet final : public RefCounted<CSSStyleSheet> {
public:
- static PassRefPtr<CSSStyleSheet> createInline(Node*, const KURL&, const TextPosition& startPosition = TextPosition::minimumPosition());
- static PassRefPtr<CSSStyleSheet> createInline(PassRefPtr<StyleSheetContents>, Node* ownerNode, const TextPosition& startPosition = TextPosition::minimumPosition());
+ static PassRefPtr<CSSStyleSheet> create(Node*, const KURL&);
+ static PassRefPtr<CSSStyleSheet> create(PassRefPtr<StyleSheetContents>, Node* ownerNode);
~CSSStyleSheet();
@@ -54,31 +47,19 @@ public:
void clearOwnerNode();
- KURL baseURL() const;
-
Document* ownerDocument() const;
MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); }
void setMediaQueries(PassRefPtr<MediaQuerySet>);
StyleSheetContents* contents() const { return m_contents.get(); }
- bool isInline() const { return m_isInlineStylesheet; }
- TextPosition startPositionInSource() const { return m_startPosition; }
-
- // TODO(esprehn): Remove this.
- String type() const { return "text/css"; }
-
private:
- CSSStyleSheet(PassRefPtr<StyleSheetContents>);
- CSSStyleSheet(PassRefPtr<StyleSheetContents>, Node* ownerNode, bool isInlineStylesheet, const TextPosition& startPosition);
+ CSSStyleSheet(PassRefPtr<StyleSheetContents>, Node* ownerNode);
RefPtr<StyleSheetContents> m_contents;
- bool m_isInlineStylesheet;
RefPtr<MediaQuerySet> m_mediaQueries;
Node* m_ownerNode;
-
- TextPosition m_startPosition;
};
} // namespace blink
« no previous file with comments | « no previous file | sky/engine/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698