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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
548 | 548 |
549 const ElementData* elementData() const { return m_elementData.get(); } | 549 const ElementData* elementData() const { return m_elementData.get(); } |
550 UniqueElementData& ensureUniqueElementData(); | 550 UniqueElementData& ensureUniqueElementData(); |
551 | 551 |
552 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier); | 552 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, CSSValueID identifier); |
553 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitType); | 553 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, double value, CSSPrimitiveValue::UnitType); |
554 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value); | 554 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, const String& value); |
555 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, PassRefPtrWillBeRawPtr<CSSValue>); | 555 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr opertyID, PassRefPtrWillBeRawPtr<CSSValue>); |
556 | 556 |
557 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 557 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
558 void removedFrom(ContainerNode*) override; | 558 void removedFrom(ContainerNode*, Node*) override; |
dstockwell
2015/12/08 12:02:37
ditto
| |
559 void childrenChanged(const ChildrenChange&) override; | 559 void childrenChanged(const ChildrenChange&) override; |
560 | 560 |
561 virtual void willRecalcStyle(StyleRecalcChange); | 561 virtual void willRecalcStyle(StyleRecalcChange); |
562 virtual void didRecalcStyle(StyleRecalcChange); | 562 virtual void didRecalcStyle(StyleRecalcChange); |
563 virtual PassRefPtr<ComputedStyle> customStyleForLayoutObject(); | 563 virtual PassRefPtr<ComputedStyle> customStyleForLayoutObject(); |
564 | 564 |
565 virtual bool shouldRegisterAsNamedItem() const { return false; } | 565 virtual bool shouldRegisterAsNamedItem() const { return false; } |
566 virtual bool shouldRegisterAsExtraNamedItem() const { return false; } | 566 virtual bool shouldRegisterAsExtraNamedItem() const { return false; } |
567 | 567 |
568 bool supportsSpatialNavigationFocus() const; | 568 bool supportsSpatialNavigationFocus() const; |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
831 setFlag(InDocumentFlag); | 831 setFlag(InDocumentFlag); |
832 insertionPoint->document().incrementNodeCount(); | 832 insertionPoint->document().incrementNodeCount(); |
833 } | 833 } |
834 if (parentOrShadowHostNode()->isInShadowTree()) | 834 if (parentOrShadowHostNode()->isInShadowTree()) |
835 setFlag(IsInShadowTreeFlag); | 835 setFlag(IsInShadowTreeFlag); |
836 if (childNeedsDistributionRecalc() && !insertionPoint->childNeedsDistributio nRecalc()) | 836 if (childNeedsDistributionRecalc() && !insertionPoint->childNeedsDistributio nRecalc()) |
837 insertionPoint->markAncestorsWithChildNeedsDistributionRecalc(); | 837 insertionPoint->markAncestorsWithChildNeedsDistributionRecalc(); |
838 return InsertionDone; | 838 return InsertionDone; |
839 } | 839 } |
840 | 840 |
841 inline void Node::removedFrom(ContainerNode* insertionPoint) | 841 inline void Node::removedFrom(ContainerNode* insertionPoint, Node* next) |
842 { | 842 { |
843 ASSERT(insertionPoint->inDocument() || isContainerNode() || isInShadowTree() ); | 843 ASSERT(insertionPoint->inDocument() || isContainerNode() || isInShadowTree() ); |
844 if (insertionPoint->inDocument()) { | 844 if (insertionPoint->inDocument()) { |
845 clearFlag(InDocumentFlag); | 845 clearFlag(InDocumentFlag); |
846 insertionPoint->document().decrementNodeCount(); | 846 insertionPoint->document().decrementNodeCount(); |
847 } | 847 } |
848 if (isInShadowTree() && !treeScope().rootNode().isShadowRoot()) | 848 if (isInShadowTree() && !treeScope().rootNode().isShadowRoot()) |
849 clearFlag(IsInShadowTreeFlag); | 849 clearFlag(IsInShadowTreeFlag); |
850 if (AXObjectCache* cache = document().existingAXObjectCache()) | 850 if (AXObjectCache* cache = document().existingAXObjectCache()) |
851 cache->remove(this); | 851 cache->remove(this); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
925 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 925 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
926 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 926 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
927 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ | 927 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ |
928 { \ | 928 { \ |
929 return adoptRefWillBeNoop(new T(tagName, document)); \ | 929 return adoptRefWillBeNoop(new T(tagName, document)); \ |
930 } | 930 } |
931 | 931 |
932 } // namespace | 932 } // namespace |
933 | 933 |
934 #endif // Element_h | 934 #endif // Element_h |
OLD | NEW |