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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLObjectElement.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 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool isExposed() const; 72 bool isExposed() const;
73 73
74 private: 74 private:
75 HTMLObjectElement(Document&, HTMLFormElement*, bool createdByParser); 75 HTMLObjectElement(Document&, HTMLFormElement*, bool createdByParser);
76 76
77 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override; 77 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override;
78 bool isPresentationAttribute(const QualifiedName&) const override; 78 bool isPresentationAttribute(const QualifiedName&) const override;
79 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override; 79 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override;
80 80
81 InsertionNotificationRequest insertedInto(ContainerNode*) override; 81 InsertionNotificationRequest insertedInto(ContainerNode*) override;
82 void removedFrom(ContainerNode*) override; 82 void removedFrom(ContainerNode* insertionPoint, Node* next) override;
83 83
84 void didMoveToNewDocument(Document& oldDocument) override; 84 void didMoveToNewDocument(Document& oldDocument) override;
85 85
86 void childrenChanged(const ChildrenChange&) override; 86 void childrenChanged(const ChildrenChange&) override;
87 87
88 bool isURLAttribute(const Attribute&) const override; 88 bool isURLAttribute(const Attribute&) const override;
89 bool hasLegalLinkAttribute(const QualifiedName&) const override; 89 bool hasLegalLinkAttribute(const QualifiedName&) const override;
90 const QualifiedName& subResourceAttributeName() const override; 90 const QualifiedName& subResourceAttributeName() const override;
91 const AtomicString imageSourceURL() const override; 91 const AtomicString imageSourceURL() const override;
92 92
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement &>(element); 141 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement &>(element);
142 // We need to assert after the cast because FormAssociatedElement doesn't 142 // We need to assert after the cast because FormAssociatedElement doesn't
143 // have hasTagName. 143 // have hasTagName.
144 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT ag)); 144 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT ag));
145 return objectElement; 145 return objectElement;
146 } 146 }
147 147
148 } // namespace blink 148 } // namespace blink
149 149
150 #endif // HTMLObjectElement_h 150 #endif // HTMLObjectElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698