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

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

Issue 1511523002: Align HTMLImageElement relevant mutations to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix removal issue when a text node is between <source> and <img> 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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
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* insertionPoint, Node* next) override;
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698