Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.h

Issue 1449623002: IntersectionObserver: second cut. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Added dispose() methods for expicit cleanup Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 // the element is inDocument() and the context is an isolated world. 545 // the element is inDocument() and the context is an isolated world.
545 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q ualifiedName& attr1); 546 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q ualifiedName& attr1);
546 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);
547 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q ualifiedName& attr1, const QualifiedName& attr2, const QualifiedName& attr3); 548 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); 549 void logUpdateAttributeIfIsolatedWorldAndInDocument(const char element[], co nst QualifiedName& attributeName, const AtomicString& oldValue, const AtomicStri ng& newValue);
549 550
550 DECLARE_VIRTUAL_TRACE(); 551 DECLARE_VIRTUAL_TRACE();
551 552
552 SpellcheckAttributeState spellcheckAttributeState() const; 553 SpellcheckAttributeState spellcheckAttributeState() const;
553 554
555 bool hasIntersectionObserverData() const;
556 ElementIntersectionObserverData& intersectionObserverData();
557
554 protected: 558 protected:
555 Element(const QualifiedName& tagName, Document*, ConstructionType); 559 Element(const QualifiedName& tagName, Document*, ConstructionType);
556 560
557 const ElementData* elementData() const { return m_elementData.get(); } 561 const ElementData* elementData() const { return m_elementData.get(); }
558 UniqueElementData& ensureUniqueElementData(); 562 UniqueElementData& ensureUniqueElementData();
559 563
560 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier); 564 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier);
561 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitType); 565 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitType);
562 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value); 566 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value);
563 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, PassRefPtrWillBeRawPtr<CSSValue>); 567 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, PassRefPtrWillBeRawPtr<CSSValue>);
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 937 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
934 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 938 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
935 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 939 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
936 { \ 940 { \
937 return adoptRefWillBeNoop(new T(tagName, document)); \ 941 return adoptRefWillBeNoop(new T(tagName, document)); \
938 } 942 }
939 943
940 } // namespace 944 } // namespace
941 945
942 #endif // Element_h 946 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698