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

Unified Diff: sky/engine/core/dom/StyleSheetCandidate.cpp

Issue 696413002: Remove HTMLLinkElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/dom/StyleSheetCandidate.h ('k') | sky/engine/core/dom/TreeScopeStyleSheetCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « sky/engine/core/dom/StyleSheetCandidate.h ('k') | sky/engine/core/dom/TreeScopeStyleSheetCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698