| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); | 93 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); |
| 94 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); | 94 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); |
| 95 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); | 95 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); |
| 96 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); | 96 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); |
| 97 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange); | 97 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange); |
| 98 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror); | 98 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror); |
| 99 DEFINE_ATTRIBUTE_EVENT_LISTENER(wheel); | 99 DEFINE_ATTRIBUTE_EVENT_LISTENER(wheel); |
| 100 | 100 |
| 101 bool hasAttribute(const QualifiedName&) const; | 101 bool hasAttribute(const QualifiedName&) const; |
| 102 const AtomicString& getAttribute(const QualifiedName&) const; | 102 const AtomicString& getAttribute(const QualifiedName&) const; |
| 103 |
| 104 // Passing nullAtom as the second parameter removes the attribute when calli
ng either of these set methods. |
| 103 void setAttribute(const QualifiedName&, const AtomicString& value); | 105 void setAttribute(const QualifiedName&, const AtomicString& value); |
| 104 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString&
value); | 106 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString&
value); |
| 107 |
| 105 void removeAttribute(const QualifiedName&); | 108 void removeAttribute(const QualifiedName&); |
| 106 | 109 |
| 107 // Typed getters and setters for language bindings. | 110 // Typed getters and setters for language bindings. |
| 108 int getIntegralAttribute(const QualifiedName& attributeName) const; | 111 int getIntegralAttribute(const QualifiedName& attributeName) const; |
| 109 void setIntegralAttribute(const QualifiedName& attributeName, int value); | 112 void setIntegralAttribute(const QualifiedName& attributeName, int value); |
| 110 unsigned getUnsignedIntegralAttribute(const QualifiedName& attributeName) co
nst; | 113 unsigned getUnsignedIntegralAttribute(const QualifiedName& attributeName) co
nst; |
| 111 void setUnsignedIntegralAttribute(const QualifiedName& attributeName, unsign
ed value); | 114 void setUnsignedIntegralAttribute(const QualifiedName& attributeName, unsign
ed value); |
| 112 double getFloatingPointAttribute(const QualifiedName& attributeName, double
fallbackValue = std::numeric_limits<double>::quiet_NaN()) const; | 115 double getFloatingPointAttribute(const QualifiedName& attributeName, double
fallbackValue = std::numeric_limits<double>::quiet_NaN()) const; |
| 113 void setFloatingPointAttribute(const QualifiedName& attributeName, double va
lue); | 116 void setFloatingPointAttribute(const QualifiedName& attributeName, double va
lue); |
| 114 | 117 |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 bool hasActiveAnimations() const; | 527 bool hasActiveAnimations() const; |
| 525 | 528 |
| 526 InputMethodContext* inputMethodContext(); | 529 InputMethodContext* inputMethodContext(); |
| 527 bool hasInputMethodContext() const; | 530 bool hasInputMethodContext() const; |
| 528 | 531 |
| 529 virtual void setPrefix(const AtomicString&, ExceptionState&) OVERRIDE FINAL; | 532 virtual void setPrefix(const AtomicString&, ExceptionState&) OVERRIDE FINAL; |
| 530 | 533 |
| 531 void synchronizeAttribute(const AtomicString& localName) const; | 534 void synchronizeAttribute(const AtomicString& localName) const; |
| 532 | 535 |
| 533 MutableStylePropertySet* ensureMutableInlineStyle(); | 536 MutableStylePropertySet* ensureMutableInlineStyle(); |
| 537 void clearMutableInlineStyleIfEmpty(); |
| 534 | 538 |
| 535 protected: | 539 protected: |
| 536 Element(const QualifiedName& tagName, Document* document, ConstructionType t
ype) | 540 Element(const QualifiedName& tagName, Document* document, ConstructionType t
ype) |
| 537 : ContainerNode(document, type) | 541 : ContainerNode(document, type) |
| 538 , m_tagName(tagName) | 542 , m_tagName(tagName) |
| 539 { | 543 { |
| 540 ScriptWrappable::init(this); | 544 ScriptWrappable::init(this); |
| 541 } | 545 } |
| 542 | 546 |
| 543 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, CSSValueID identifier); | 547 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, CSSValueID identifier); |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 } | 898 } |
| 895 | 899 |
| 896 inline bool isShadowHost(const Element* element) | 900 inline bool isShadowHost(const Element* element) |
| 897 { | 901 { |
| 898 return element && element->shadow(); | 902 return element && element->shadow(); |
| 899 } | 903 } |
| 900 | 904 |
| 901 } // namespace | 905 } // namespace |
| 902 | 906 |
| 903 #endif | 907 #endif |
| OLD | NEW |