diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/dom/Attr.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/dom/Attr.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/chromium/third_party/WebKit/Source/core/dom/Attr.h b/chromium/third_party/WebKit/Source/core/dom/Attr.h index bd9e7eb5e2e..40d812b3997 100644 --- a/chromium/third_party/WebKit/Source/core/dom/Attr.h +++ b/chromium/third_party/WebKit/Source/core/dom/Attr.h @@ -47,7 +47,7 @@ public: virtual ~Attr(); String name() const { return qualifiedName().toString(); } - bool specified() const { return m_specified; } + bool specified() const { return true; } Element* ownerElement() const { return m_element; } const AtomicString& value() const; @@ -58,8 +58,6 @@ public: bool isId() const; - void setSpecified(bool specified) { m_specified = specified; } - void attachToElement(Element*); void detachFromElementWithValue(const AtomicString&); @@ -94,22 +92,10 @@ private: Element* m_element; QualifiedName m_name; AtomicString m_standaloneValue; - - unsigned m_ignoreChildrenChanged : 31; - bool m_specified : 1; + unsigned m_ignoreChildrenChanged; }; -inline Attr* toAttr(Node* node) -{ - ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isAttributeNode()); - return static_cast<Attr*>(node); -} - -inline const Attr* toAttr(const Node* node) -{ - ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isAttributeNode()); - return static_cast<const Attr*>(node); -} +DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); } // namespace WebCore |