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

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

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/StyleSheetContents.h ('k') | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/StyleSheetContents.cpp
diff --git a/sky/engine/core/css/StyleSheetContents.cpp b/sky/engine/core/css/StyleSheetContents.cpp
index 02bbf3de7b7d05753960f8d549dff679bb993fc9..990a22761192c456bf2d3c5e1a4ca6af3b4fc96c 100644
--- a/sky/engine/core/css/StyleSheetContents.cpp
+++ b/sky/engine/core/css/StyleSheetContents.cpp
@@ -35,11 +35,10 @@
namespace blink {
-StyleSheetContents::StyleSheetContents(const String& originalURL, const CSSParserContext& context)
+StyleSheetContents::StyleSheetContents(const CSSParserContext& context)
: m_usesRemUnits(false)
, m_hasMediaQueries(false)
, m_hasSingleOwnerDocument(true)
- , m_originalURL(originalURL)
, m_parserContext(context)
{
}
@@ -51,18 +50,6 @@ StyleSheetContents::~StyleSheetContents()
#endif
}
-bool StyleSheetContents::isCacheable() const
-{
- // FIXME: StyleSheets with media queries can't be cached because their RuleSet
- // is processed differently based off the media queries, which might resolve
- // differently depending on the context of the parent CSSStyleSheet (e.g.
- // if they are in differently sized iframes). Once RuleSets are media query
- // agnostic, we can restore sharing of StyleSheetContents with medea queries.
- if (m_hasMediaQueries)
- return false;
- return true;
-}
-
void StyleSheetContents::parserAppendRule(PassRefPtr<StyleRuleBase> rule)
{
// Add warning message to inspector if dpi/dpcm values are used for screen media.
@@ -122,12 +109,6 @@ Document* StyleSheetContents::singleOwnerDocument() const
return clientSingleOwnerDocument();
}
-KURL StyleSheetContents::completeURL(const String& url) const
-{
- // FIXME: This is only OK when we have a singleOwnerNode, right?
- return m_parserContext.completeURL(url);
-}
-
Document* StyleSheetContents::clientSingleOwnerDocument() const
{
if (!m_hasSingleOwnerDocument || clientSize() <= 0)
« no previous file with comments | « sky/engine/core/css/StyleSheetContents.h ('k') | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698