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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ElementRareData; | 55 class ElementRareData; |
56 class ElementShadow; | 56 class ElementShadow; |
57 class ExceptionState; | 57 class ExceptionState; |
58 class Image; | 58 class Image; |
| 59 class IntersectionObservation; |
| 60 class IntersectionObserver; |
59 class IntSize; | 61 class IntSize; |
60 class Locale; | 62 class Locale; |
61 class MutableStylePropertySet; | 63 class MutableStylePropertySet; |
62 class PropertySetCSSStyleDeclaration; | 64 class PropertySetCSSStyleDeclaration; |
63 class PseudoElement; | 65 class PseudoElement; |
64 class ScrollState; | 66 class ScrollState; |
65 class ScrollStateCallback; | 67 class ScrollStateCallback; |
66 class ScrollToOptions; | 68 class ScrollToOptions; |
67 class ShadowRoot; | 69 class ShadowRoot; |
68 class ShadowRootInit; | 70 class ShadowRootInit; |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 // the element is inDocument() and the context is an isolated world. | 546 // the element is inDocument() and the context is an isolated world. |
545 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1); | 547 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1); |
546 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1, const QualifiedName& attr2); | 548 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1, const QualifiedName& attr2); |
547 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1, const QualifiedName& attr2, const QualifiedName& attr3); | 549 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1, const QualifiedName& attr2, const QualifiedName& attr3); |
548 void logUpdateAttributeIfIsolatedWorldAndInDocument(const char element[], co
nst QualifiedName& attributeName, const AtomicString& oldValue, const AtomicStri
ng& newValue); | 550 void logUpdateAttributeIfIsolatedWorldAndInDocument(const char element[], co
nst QualifiedName& attributeName, const AtomicString& oldValue, const AtomicStri
ng& newValue); |
549 | 551 |
550 DECLARE_VIRTUAL_TRACE(); | 552 DECLARE_VIRTUAL_TRACE(); |
551 | 553 |
552 SpellcheckAttributeState spellcheckAttributeState() const; | 554 SpellcheckAttributeState spellcheckAttributeState() const; |
553 | 555 |
| 556 WeakPtrWillBeRawPtr<Element> createWeakPtr(); |
| 557 |
| 558 void addIntersectionObservation(IntersectionObservation&); |
| 559 void removeIntersectionObservation(IntersectionObservation&); |
| 560 |
554 protected: | 561 protected: |
555 Element(const QualifiedName& tagName, Document*, ConstructionType); | 562 Element(const QualifiedName& tagName, Document*, ConstructionType); |
556 | 563 |
557 const ElementData* elementData() const { return m_elementData.get(); } | 564 const ElementData* elementData() const { return m_elementData.get(); } |
558 UniqueElementData& ensureUniqueElementData(); | 565 UniqueElementData& ensureUniqueElementData(); |
559 | 566 |
560 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, CSSValueID identifier); | 567 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, CSSValueID identifier); |
561 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, double value, CSSPrimitiveValue::UnitType); | 568 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, double value, CSSPrimitiveValue::UnitType); |
562 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, const String& value); | 569 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, const String& value); |
563 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, PassRefPtrWillBeRawPtr<CSSValue>); | 570 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, PassRefPtrWillBeRawPtr<CSSValue>); |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
933 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 940 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
934 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 941 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
935 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 942 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
936 { \ | 943 { \ |
937 return adoptRefWillBeNoop(new T(tagName, document)); \ | 944 return adoptRefWillBeNoop(new T(tagName, document)); \ |
938 } | 945 } |
939 | 946 |
940 } // namespace | 947 } // namespace |
941 | 948 |
942 #endif // Element_h | 949 #endif // Element_h |
OLD | NEW |