| 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)
|
|
|