Index: Source/core/html/HTMLStyleElement.h |
diff --git a/Source/core/html/HTMLStyleElement.h b/Source/core/html/HTMLStyleElement.h |
index c058e8fa03a14bcb10230af78ff8adeec628cedb..e0f0cbab35fc63bb1a0e9bade881fc3413b7c702 100644 |
--- a/Source/core/html/HTMLStyleElement.h |
+++ b/Source/core/html/HTMLStyleElement.h |
@@ -41,22 +41,8 @@ public: |
void setType(const AtomicString&); |
- bool scoped() const; |
- void setScoped(bool); |
ContainerNode* scopingNode(); |
- bool isRegisteredAsScoped() const |
- { |
- // Note: We cannot rely on the 'scoped' attribute still being present when this method is invoked. |
- // Therefore we cannot rely on scoped()! |
- if (m_scopedStyleRegistrationState == NotRegistered) |
- return false; |
- return true; |
- } |
- |
- bool isRegisteredInShadowRoot() const |
- { |
- return m_scopedStyleRegistrationState == RegisteredInShadowRoot; |
- } |
+ bool isScoped() const { return m_scoped; } |
using StyleElement::sheet; |
@@ -85,19 +71,9 @@ private: |
virtual const AtomicString& media() const OVERRIDE; |
virtual const AtomicString& type() const OVERRIDE; |
- void scopedAttributeChanged(bool); |
- void registerWithScopingNode(bool); |
- void unregisterWithScopingNode(ContainerNode*); |
- |
bool m_firedLoad; |
bool m_loadedSheet; |
- |
- enum ScopedStyleRegistrationState { |
- NotRegistered, |
- RegisteredAsScoped, |
- RegisteredInShadowRoot |
- }; |
- ScopedStyleRegistrationState m_scopedStyleRegistrationState; |
+ bool m_scoped; |
}; |
} //namespace |