| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 // Clones attributes only. | 399 // Clones attributes only. |
| 400 void cloneAttributesFromElement(const Element&); | 400 void cloneAttributesFromElement(const Element&); |
| 401 | 401 |
| 402 // Clones all attribute-derived data, including subclass specifics (through
copyNonAttributeProperties.) | 402 // Clones all attribute-derived data, including subclass specifics (through
copyNonAttributeProperties.) |
| 403 void cloneDataFromElement(const Element&); | 403 void cloneDataFromElement(const Element&); |
| 404 | 404 |
| 405 bool hasEquivalentAttributes(const Element* other) const; | 405 bool hasEquivalentAttributes(const Element* other) const; |
| 406 | 406 |
| 407 virtual void copyNonAttributePropertiesFromElement(const Element&) { } | 407 virtual void copyNonAttributePropertiesFromElement(const Element&) { } |
| 408 | 408 |
| 409 virtual void attach(); | 409 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; |
| 410 virtual void detach(); | 410 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; |
| 411 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); | 411 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); |
| 412 virtual bool rendererIsNeeded(const NodeRenderingContext&); | 412 virtual bool rendererIsNeeded(const NodeRenderingContext&); |
| 413 void recalcStyle(StyleChange = NoChange); | 413 void recalcStyle(StyleChange = NoChange); |
| 414 void didAffectSelector(AffectedSelectorMask); | 414 void didAffectSelector(AffectedSelectorMask); |
| 415 | 415 |
| 416 ElementShadow* shadow() const; | 416 ElementShadow* shadow() const; |
| 417 ElementShadow* ensureShadow(); | 417 ElementShadow* ensureShadow(); |
| 418 PassRefPtr<ShadowRoot> createShadowRoot(ExceptionCode&); | 418 PassRefPtr<ShadowRoot> createShadowRoot(ExceptionCode&); |
| 419 ShadowRoot* shadowRoot() const; | 419 ShadowRoot* shadowRoot() const; |
| 420 | 420 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 | 708 |
| 709 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const
QualifiedName&, const AtomicString&); | 709 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const
QualifiedName&, const AtomicString&); |
| 710 | 710 |
| 711 ElementRareData* elementRareData() const; | 711 ElementRareData* elementRareData() const; |
| 712 ElementRareData* ensureElementRareData(); | 712 ElementRareData* ensureElementRareData(); |
| 713 | 713 |
| 714 void detachAllAttrNodesFromElement(); | 714 void detachAllAttrNodesFromElement(); |
| 715 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); | 715 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); |
| 716 void detachAttrNodeAtIndex(Attr*, size_t index); | 716 void detachAttrNodeAtIndex(Attr*, size_t index); |
| 717 | 717 |
| 718 void createRendererIfNeeded(); | 718 void createRendererIfNeeded(const AttachContext&); |
| 719 | 719 |
| 720 bool isJavaScriptURLAttribute(const Attribute&) const; | 720 bool isJavaScriptURLAttribute(const Attribute&) const; |
| 721 | 721 |
| 722 RefPtr<ElementData> m_elementData; | 722 RefPtr<ElementData> m_elementData; |
| 723 }; | 723 }; |
| 724 | 724 |
| 725 inline Element* toElement(Node* node) | 725 inline Element* toElement(Node* node) |
| 726 { | 726 { |
| 727 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isElementNode()); | 727 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isElementNode()); |
| 728 return static_cast<Element*>(node); | 728 return static_cast<Element*>(node); |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 997 | 997 |
| 998 inline const Attribute* ElementData::attributeItem(unsigned index) const | 998 inline const Attribute* ElementData::attributeItem(unsigned index) const |
| 999 { | 999 { |
| 1000 RELEASE_ASSERT(index < length()); | 1000 RELEASE_ASSERT(index < length()); |
| 1001 return attributeBase() + index; | 1001 return attributeBase() + index; |
| 1002 } | 1002 } |
| 1003 | 1003 |
| 1004 } // namespace | 1004 } // namespace |
| 1005 | 1005 |
| 1006 #endif | 1006 #endif |
| OLD | NEW |