Chromium Code Reviews| 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 530 void setTabIndex(int); | 532 void setTabIndex(int); |
| 531 short tabIndex() const override; | 533 short tabIndex() const override; |
| 532 | 534 |
| 533 void incrementProxyCount(); | 535 void incrementProxyCount(); |
| 534 void decrementProxyCount(); | 536 void decrementProxyCount(); |
| 535 | 537 |
| 536 DECLARE_VIRTUAL_TRACE(); | 538 DECLARE_VIRTUAL_TRACE(); |
| 537 | 539 |
| 538 SpellcheckAttributeState spellcheckAttributeState() const; | 540 SpellcheckAttributeState spellcheckAttributeState() const; |
| 539 | 541 |
| 542 WeakPtrWillBeRawPtr<Element> createWeakPtr(); | |
| 543 | |
| 544 void addIntersectionObservation(IntersectionObservation&); | |
| 545 void removeIntersectionObservation(IntersectionObservation&); | |
| 546 | |
| 547 bool computeIntersection(Element*, LayoutRect&, LayoutRect&, LayoutRect&); | |
|
esprehn
2015/12/12 00:14:12
const, also const Element* hopefully.
szager1
2015/12/16 19:15:33
This method has been refactored out.
| |
| 548 | |
| 540 protected: | 549 protected: |
| 541 Element(const QualifiedName& tagName, Document*, ConstructionType); | 550 Element(const QualifiedName& tagName, Document*, ConstructionType); |
| 542 | 551 |
| 543 const ElementData* elementData() const { return m_elementData.get(); } | 552 const ElementData* elementData() const { return m_elementData.get(); } |
| 544 UniqueElementData& ensureUniqueElementData(); | 553 UniqueElementData& ensureUniqueElementData(); |
| 545 | 554 |
| 546 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier); | 555 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier); |
| 547 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitType); | 556 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitType); |
| 548 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value); | 557 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value); |
| 549 | 558 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 664 | 673 |
| 665 QualifiedName m_tagName; | 674 QualifiedName m_tagName; |
| 666 | 675 |
| 667 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt ring& newName); | 676 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt ring& newName); |
| 668 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato micString& newName); | 677 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato micString& newName); |
| 669 | 678 |
| 670 void createUniqueElementData(); | 679 void createUniqueElementData(); |
| 671 | 680 |
| 672 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const QualifiedName&, const AtomicString&); | 681 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const QualifiedName&, const AtomicString&); |
| 673 | 682 |
| 683 bool computeElementIntersection(Element*, LayoutRect&, LayoutRect&); | |
| 684 Element* computeFrameIntersection(LayoutRect&, LayoutRect&); | |
| 685 | |
| 674 ElementRareData* elementRareData() const; | 686 ElementRareData* elementRareData() const; |
| 675 ElementRareData& ensureElementRareData(); | 687 ElementRareData& ensureElementRareData(); |
| 676 | 688 |
| 677 AttrNodeList& ensureAttrNodeList(); | 689 AttrNodeList& ensureAttrNodeList(); |
| 678 void removeAttrNodeList(); | 690 void removeAttrNodeList(); |
| 679 void detachAllAttrNodesFromElement(); | 691 void detachAllAttrNodesFromElement(); |
| 680 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); | 692 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); |
| 681 void detachAttrNodeAtIndex(Attr*, size_t index); | 693 void detachAttrNodeAtIndex(Attr*, size_t index); |
| 682 | 694 |
| 683 v8::Local<v8::Object> wrapCustomElement(v8::Isolate*, v8::Local<v8::Object> creationContext); | 695 v8::Local<v8::Object> wrapCustomElement(v8::Isolate*, v8::Local<v8::Object> creationContext); |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 918 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 930 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 919 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 931 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 920 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ | 932 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ |
| 921 { \ | 933 { \ |
| 922 return adoptRefWillBeNoop(new T(tagName, document)); \ | 934 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 923 } | 935 } |
| 924 | 936 |
| 925 } // namespace | 937 } // namespace |
| 926 | 938 |
| 927 #endif // Element_h | 939 #endif // Element_h |
| OLD | NEW |