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

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

Issue 2005593002: Initial ResizeObserver implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 class ElementRareData; 56 class ElementRareData;
57 class ElementShadow; 57 class ElementShadow;
58 class ExceptionState; 58 class ExceptionState;
59 class Image; 59 class Image;
60 class IntSize; 60 class IntSize;
61 class Locale; 61 class Locale;
62 class MutableStylePropertySet; 62 class MutableStylePropertySet;
63 class NodeIntersectionObserverData; 63 class NodeIntersectionObserverData;
64 class PropertySetCSSStyleDeclaration; 64 class PropertySetCSSStyleDeclaration;
65 class PseudoElement; 65 class PseudoElement;
66 class ResizeObservationSet;
66 class ScrollState; 67 class ScrollState;
67 class ScrollStateCallback; 68 class ScrollStateCallback;
68 class ScrollToOptions; 69 class ScrollToOptions;
69 class ShadowRoot; 70 class ShadowRoot;
70 class ShadowRootInit; 71 class ShadowRootInit;
71 class StylePropertySet; 72 class StylePropertySet;
72 class StylePropertyMap; 73 class StylePropertyMap;
73 74
74 enum SpellcheckAttributeState { 75 enum SpellcheckAttributeState {
75 SpellcheckAttributeTrue, 76 SpellcheckAttributeTrue,
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 571
571 DECLARE_VIRTUAL_TRACE(); 572 DECLARE_VIRTUAL_TRACE();
572 573
573 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 574 DECLARE_VIRTUAL_TRACE_WRAPPERS();
574 575
575 SpellcheckAttributeState spellcheckAttributeState() const; 576 SpellcheckAttributeState spellcheckAttributeState() const;
576 577
577 NodeIntersectionObserverData* intersectionObserverData() const; 578 NodeIntersectionObserverData* intersectionObserverData() const;
578 NodeIntersectionObserverData& ensureIntersectionObserverData(); 579 NodeIntersectionObserverData& ensureIntersectionObserverData();
579 580
581 ResizeObservationSet& ensureResizeObserverData();
582
580 protected: 583 protected:
581 Element(const QualifiedName& tagName, Document*, ConstructionType); 584 Element(const QualifiedName& tagName, Document*, ConstructionType);
582 585
583 const ElementData* elementData() const { return m_elementData.get(); } 586 const ElementData* elementData() const { return m_elementData.get(); }
584 UniqueElementData& ensureUniqueElementData(); 587 UniqueElementData& ensureUniqueElementData();
585 588
586 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier); 589 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier);
587 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitType); 590 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitType);
588 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value); 591 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value);
589 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValue*); 592 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValue*);
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 static T* create(const QualifiedName&, Document&) 970 static T* create(const QualifiedName&, Document&)
968 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 971 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
969 T* T::create(const QualifiedName& tagName, Document& document) \ 972 T* T::create(const QualifiedName& tagName, Document& document) \
970 { \ 973 { \
971 return new T(tagName, document); \ 974 return new T(tagName, document); \
972 } 975 }
973 976
974 } // namespace blink 977 } // namespace blink
975 978
976 #endif // Element_h 979 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698