| Index: sky/engine/core/dom/StyleSheetCandidate.cpp
|
| diff --git a/sky/engine/core/dom/StyleSheetCandidate.cpp b/sky/engine/core/dom/StyleSheetCandidate.cpp
|
| index 680a4039e49bfba8476c0d26c0674583158f1b29..80ea3d06dfef1deaec5ea439118892ea3d436eae 100644
|
| --- a/sky/engine/core/dom/StyleSheetCandidate.cpp
|
| +++ b/sky/engine/core/dom/StyleSheetCandidate.cpp
|
| @@ -29,23 +29,11 @@
|
|
|
| #include "core/dom/Element.h"
|
| #include "core/dom/StyleEngine.h"
|
| -#include "core/html/HTMLLinkElement.h"
|
| #include "core/html/HTMLStyleElement.h"
|
| #include "core/html/imports/HTMLImport.h"
|
|
|
| namespace blink {
|
|
|
| -bool StyleSheetCandidate::isImport() const
|
| -{
|
| - return m_type == HTMLLink && toHTMLLinkElement(node()).isImport();
|
| -}
|
| -
|
| -Document* StyleSheetCandidate::importedDocument() const
|
| -{
|
| - ASSERT(isImport());
|
| - return toHTMLLinkElement(node()).import();
|
| -}
|
| -
|
| bool StyleSheetCandidate::canBeActivated() const
|
| {
|
| StyleSheet* sheet = this->sheet();
|
| @@ -55,8 +43,6 @@ bool StyleSheetCandidate::canBeActivated() const
|
| StyleSheetCandidate::Type StyleSheetCandidate::typeOf(Node& node)
|
| {
|
| if (node.isHTMLElement()) {
|
| - if (isHTMLLinkElement(node))
|
| - return HTMLLink;
|
| if (isHTMLStyleElement(node))
|
| return HTMLStyle;
|
|
|
| @@ -71,8 +57,6 @@ StyleSheetCandidate::Type StyleSheetCandidate::typeOf(Node& node)
|
| StyleSheet* StyleSheetCandidate::sheet() const
|
| {
|
| switch (m_type) {
|
| - case HTMLLink:
|
| - return toHTMLLinkElement(node()).sheet();
|
| case HTMLStyle:
|
| return toHTMLStyleElement(node()).sheet();
|
| }
|
|
|