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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 class ElementAnimations; | 45 class ElementAnimations; |
46 class Attr; | 46 class Attr; |
47 class Attribute; | 47 class Attribute; |
48 class CSSStyleDeclaration; | 48 class CSSStyleDeclaration; |
49 class ClientRect; | 49 class ClientRect; |
50 class ClientRectList; | 50 class ClientRectList; |
51 class CustomElementDefinition; | 51 class CustomElementDefinition; |
52 class DOMStringMap; | 52 class DOMStringMap; |
53 class DOMTokenList; | 53 class DOMTokenList; |
54 class Dictionary; | 54 class Dictionary; |
| 55 class ElementIntersectionObserverData; |
55 class ElementRareData; | 56 class ElementRareData; |
56 class ElementShadow; | 57 class ElementShadow; |
57 class ExceptionState; | 58 class ExceptionState; |
58 class Image; | 59 class Image; |
59 class IntSize; | 60 class IntSize; |
60 class Locale; | 61 class Locale; |
61 class MutableStylePropertySet; | 62 class MutableStylePropertySet; |
62 class PropertySetCSSStyleDeclaration; | 63 class PropertySetCSSStyleDeclaration; |
63 class PseudoElement; | 64 class PseudoElement; |
64 class ScrollState; | 65 class ScrollState; |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 // the element is inDocument() and the context is an isolated world. | 547 // the element is inDocument() and the context is an isolated world. |
547 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1); | 548 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1); |
548 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1, const QualifiedName& attr2); | 549 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1, const QualifiedName& attr2); |
549 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1, const QualifiedName& attr2, const QualifiedName& attr3); | 550 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1, const QualifiedName& attr2, const QualifiedName& attr3); |
550 void logUpdateAttributeIfIsolatedWorldAndInDocument(const char element[], co
nst QualifiedName& attributeName, const AtomicString& oldValue, const AtomicStri
ng& newValue); | 551 void logUpdateAttributeIfIsolatedWorldAndInDocument(const char element[], co
nst QualifiedName& attributeName, const AtomicString& oldValue, const AtomicStri
ng& newValue); |
551 | 552 |
552 DECLARE_VIRTUAL_TRACE(); | 553 DECLARE_VIRTUAL_TRACE(); |
553 | 554 |
554 SpellcheckAttributeState spellcheckAttributeState() const; | 555 SpellcheckAttributeState spellcheckAttributeState() const; |
555 | 556 |
| 557 ElementIntersectionObserverData* intersectionObserverData() const; |
| 558 ElementIntersectionObserverData& ensureIntersectionObserverData(); |
| 559 |
556 protected: | 560 protected: |
557 Element(const QualifiedName& tagName, Document*, ConstructionType); | 561 Element(const QualifiedName& tagName, Document*, ConstructionType); |
558 | 562 |
559 const ElementData* elementData() const { return m_elementData.get(); } | 563 const ElementData* elementData() const { return m_elementData.get(); } |
560 UniqueElementData& ensureUniqueElementData(); | 564 UniqueElementData& ensureUniqueElementData(); |
561 | 565 |
562 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, CSSValueID identifier); | 566 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, CSSValueID identifier); |
563 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, double value, CSSPrimitiveValue::UnitType); | 567 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, double value, CSSPrimitiveValue::UnitType); |
564 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, const String& value); | 568 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, const String& value); |
565 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, PassRefPtrWillBeRawPtr<CSSValue>); | 569 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, PassRefPtrWillBeRawPtr<CSSValue>); |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 939 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
936 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 940 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
937 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 941 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
938 { \ | 942 { \ |
939 return adoptRefWillBeNoop(new T(tagName, document)); \ | 943 return adoptRefWillBeNoop(new T(tagName, document)); \ |
940 } | 944 } |
941 | 945 |
942 } // namespace | 946 } // namespace |
943 | 947 |
944 #endif // Element_h | 948 #endif // Element_h |
OLD | NEW |