| 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-2011, 2013, 2014 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003-2011, 2013, 2014 Apple 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 | 291 |
| 292 virtual bool hasLegalLinkAttribute(const QualifiedName&) const; | 292 virtual bool hasLegalLinkAttribute(const QualifiedName&) const; |
| 293 virtual const QualifiedName& subResourceAttributeName() const; | 293 virtual const QualifiedName& subResourceAttributeName() const; |
| 294 | 294 |
| 295 // Only called by the parser immediately after element construction. | 295 // Only called by the parser immediately after element construction. |
| 296 void parserSetAttributes(const Vector<Attribute>&); | 296 void parserSetAttributes(const Vector<Attribute>&); |
| 297 | 297 |
| 298 // Remove attributes that might introduce scripting from the vector leaving
the element unchanged. | 298 // Remove attributes that might introduce scripting from the vector leaving
the element unchanged. |
| 299 void stripScriptingAttributes(Vector<Attribute>&) const; | 299 void stripScriptingAttributes(Vector<Attribute>&) const; |
| 300 | 300 |
| 301 const ElementData* elementData() const { return m_elementData.get(); } | 301 bool sharesSameElementData(const Element& other) const { return elementData(
) == other.elementData(); } |
| 302 UniqueElementData& ensureUniqueElementData(); | |
| 303 | 302 |
| 304 void synchronizeAllAttributes() const; | 303 void synchronizeAllAttributes() const; |
| 305 | 304 |
| 306 // Clones attributes only. | 305 // Clones attributes only. |
| 307 void cloneAttributesFromElement(const Element&); | 306 void cloneAttributesFromElement(const Element&); |
| 308 | 307 |
| 309 // Clones all attribute-derived data, including subclass specifics (through
copyNonAttributeProperties.) | 308 // Clones all attribute-derived data, including subclass specifics (through
copyNonAttributeProperties.) |
| 310 void cloneDataFromElement(const Element&); | 309 void cloneDataFromElement(const Element&); |
| 311 | 310 |
| 312 bool hasEquivalentAttributes(const Element* other) const; | 311 bool hasEquivalentAttributes(const Element* other) const; |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 void clearMutableInlineStyleIfEmpty(); | 505 void clearMutableInlineStyleIfEmpty(); |
| 507 | 506 |
| 508 void setTabIndex(int); | 507 void setTabIndex(int); |
| 509 virtual short tabIndex() const OVERRIDE; | 508 virtual short tabIndex() const OVERRIDE; |
| 510 | 509 |
| 511 virtual void trace(Visitor*) OVERRIDE; | 510 virtual void trace(Visitor*) OVERRIDE; |
| 512 | 511 |
| 513 protected: | 512 protected: |
| 514 Element(const QualifiedName& tagName, Document*, ConstructionType); | 513 Element(const QualifiedName& tagName, Document*, ConstructionType); |
| 515 | 514 |
| 515 const ElementData* elementData() const { return m_elementData.get(); } |
| 516 UniqueElementData& ensureUniqueElementData(); |
| 517 |
| 516 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, CSSValueID identifier); | 518 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, CSSValueID identifier); |
| 517 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, double value, CSSPrimitiveValue::UnitType); | 519 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, double value, CSSPrimitiveValue::UnitType); |
| 518 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, const String& value); | 520 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, const String& value); |
| 519 | 521 |
| 520 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 522 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 521 virtual void removedFrom(ContainerNode*) OVERRIDE; | 523 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 522 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; | 524 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; |
| 523 | 525 |
| 524 virtual void willRecalcStyle(StyleRecalcChange); | 526 virtual void willRecalcStyle(StyleRecalcChange); |
| 525 virtual void didRecalcStyle(StyleRecalcChange); | 527 virtual void didRecalcStyle(StyleRecalcChange); |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 861 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 860 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 862 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 861 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 863 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 862 { \ | 864 { \ |
| 863 return adoptRefWillBeNoop(new T(tagName, document)); \ | 865 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 864 } | 866 } |
| 865 | 867 |
| 866 } // namespace | 868 } // namespace |
| 867 | 869 |
| 868 #endif | 870 #endif |
| OLD | NEW |