| 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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 | 636 |
| 637 IntSize savedLayerScrollOffset() const; | 637 IntSize savedLayerScrollOffset() const; |
| 638 void setSavedLayerScrollOffset(const IntSize&); | 638 void setSavedLayerScrollOffset(const IntSize&); |
| 639 | 639 |
| 640 ActiveAnimations* activeAnimations() const; | 640 ActiveAnimations* activeAnimations() const; |
| 641 ActiveAnimations* ensureActiveAnimations(); | 641 ActiveAnimations* ensureActiveAnimations(); |
| 642 bool hasActiveAnimations() const; | 642 bool hasActiveAnimations() const; |
| 643 | 643 |
| 644 InputMethodContext* inputMethodContext(); | 644 InputMethodContext* inputMethodContext(); |
| 645 | 645 |
| 646 virtual void setPrefix(const AtomicString&, ExceptionState&) OVERRIDE FINAL; |
| 647 |
| 646 protected: | 648 protected: |
| 647 Element(const QualifiedName& tagName, Document* document, ConstructionType t
ype) | 649 Element(const QualifiedName& tagName, Document* document, ConstructionType t
ype) |
| 648 : ContainerNode(document, type) | 650 : ContainerNode(document, type) |
| 649 , m_tagName(tagName) | 651 , m_tagName(tagName) |
| 650 { | 652 { |
| 651 ScriptWrappable::init(this); | 653 ScriptWrappable::init(this); |
| 652 } | 654 } |
| 653 | 655 |
| 654 virtual bool isPresentationAttribute(const QualifiedName&) const { return fa
lse; } | 656 virtual bool isPresentationAttribute(const QualifiedName&) const { return fa
lse; } |
| 655 | 657 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 void synchronizeAttribute(const QualifiedName&) const; | 722 void synchronizeAttribute(const QualifiedName&) const; |
| 721 void synchronizeAttribute(const AtomicString& localName) const; | 723 void synchronizeAttribute(const AtomicString& localName) const; |
| 722 | 724 |
| 723 void updateId(const AtomicString& oldId, const AtomicString& newId); | 725 void updateId(const AtomicString& oldId, const AtomicString& newId); |
| 724 void updateId(TreeScope*, const AtomicString& oldId, const AtomicString& new
Id); | 726 void updateId(TreeScope*, const AtomicString& oldId, const AtomicString& new
Id); |
| 725 void updateName(const AtomicString& oldName, const AtomicString& newName); | 727 void updateName(const AtomicString& oldName, const AtomicString& newName); |
| 726 void updateLabel(TreeScope*, const AtomicString& oldForAttributeValue, const
AtomicString& newForAttributeValue); | 728 void updateLabel(TreeScope*, const AtomicString& oldForAttributeValue, const
AtomicString& newForAttributeValue); |
| 727 | 729 |
| 728 void scrollByUnits(int units, ScrollGranularity); | 730 void scrollByUnits(int units, ScrollGranularity); |
| 729 | 731 |
| 730 virtual void setPrefix(const AtomicString&, ExceptionState&) OVERRIDE FINAL; | |
| 731 virtual NodeType nodeType() const OVERRIDE FINAL; | 732 virtual NodeType nodeType() const OVERRIDE FINAL; |
| 732 virtual bool childTypeAllowed(NodeType) const OVERRIDE FINAL; | 733 virtual bool childTypeAllowed(NodeType) const OVERRIDE FINAL; |
| 733 | 734 |
| 734 void setAttributeInternal(size_t index, const QualifiedName&, const AtomicSt
ring& value, SynchronizationOfLazyAttribute); | 735 void setAttributeInternal(size_t index, const QualifiedName&, const AtomicSt
ring& value, SynchronizationOfLazyAttribute); |
| 735 void addAttributeInternal(const QualifiedName&, const AtomicString& value, S
ynchronizationOfLazyAttribute); | 736 void addAttributeInternal(const QualifiedName&, const AtomicString& value, S
ynchronizationOfLazyAttribute); |
| 736 void removeAttributeInternal(size_t index, SynchronizationOfLazyAttribute); | 737 void removeAttributeInternal(size_t index, SynchronizationOfLazyAttribute); |
| 737 void attributeChangedFromParserOrByCloning(const QualifiedName&, const Atomi
cString&, AttributeModificationReason); | 738 void attributeChangedFromParserOrByCloning(const QualifiedName&, const Atomi
cString&, AttributeModificationReason); |
| 738 | 739 |
| 739 #ifndef NDEBUG | 740 #ifndef NDEBUG |
| 740 virtual void formatForDebugger(char* buffer, unsigned length) const; | 741 virtual void formatForDebugger(char* buffer, unsigned length) const; |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 | 1084 |
| 1084 inline const Attribute* ElementData::attributeItem(unsigned index) const | 1085 inline const Attribute* ElementData::attributeItem(unsigned index) const |
| 1085 { | 1086 { |
| 1086 RELEASE_ASSERT(index < length()); | 1087 RELEASE_ASSERT(index < length()); |
| 1087 return attributeBase() + index; | 1088 return attributeBase() + index; |
| 1088 } | 1089 } |
| 1089 | 1090 |
| 1090 } // namespace | 1091 } // namespace |
| 1091 | 1092 |
| 1092 #endif | 1093 #endif |
| OLD | NEW |