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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLImageElement.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, 2008, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2008, 2010 Apple Inc. All rights reserved.
5 * Copyright (C) 2010 Google Inc. All rights reserved. 5 * Copyright (C) 2010 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 bool canStartSelection() const override { return false; } 141 bool canStartSelection() const override { return false; }
142 142
143 bool isURLAttribute(const Attribute&) const override; 143 bool isURLAttribute(const Attribute&) const override;
144 bool hasLegalLinkAttribute(const QualifiedName&) const override; 144 bool hasLegalLinkAttribute(const QualifiedName&) const override;
145 const QualifiedName& subResourceAttributeName() const override; 145 const QualifiedName& subResourceAttributeName() const override;
146 146
147 bool draggable() const override; 147 bool draggable() const override;
148 148
149 InsertionNotificationRequest insertedInto(ContainerNode*) override; 149 InsertionNotificationRequest insertedInto(ContainerNode*) override;
150 void removedFrom(ContainerNode*) override; 150 void removedFrom(ContainerNode* insertionPoint, Node* next) override;
151 bool shouldRegisterAsNamedItem() const override { return true; } 151 bool shouldRegisterAsNamedItem() const override { return true; }
152 bool shouldRegisterAsExtraNamedItem() const override { return true; } 152 bool shouldRegisterAsExtraNamedItem() const override { return true; }
153 bool isInteractiveContent() const override; 153 bool isInteractiveContent() const override;
154 Image* imageContents() override; 154 Image* imageContents() override;
155 155
156 void resetFormOwner(); 156 void resetFormOwner();
157 ImageCandidate findBestFitImageFromPictureParent(); 157 ImageCandidate findBestFitImageFromPictureParent();
158 void setBestFitURLAndDPRFromImageCandidate(const ImageCandidate&); 158 void setBestFitURLAndDPRFromImageCandidate(const ImageCandidate&);
159 HTMLImageLoader& imageLoader() const { return *m_imageLoader; } 159 HTMLImageLoader& imageLoader() const { return *m_imageLoader; }
160 void notifyViewportChanged(); 160 void notifyViewportChanged();
(...skipping 11 matching lines...) Expand all
172 unsigned m_intrinsicSizingViewportDependant : 1; 172 unsigned m_intrinsicSizingViewportDependant : 1;
173 unsigned m_useFallbackContent : 1; 173 unsigned m_useFallbackContent : 1;
174 unsigned m_isFallbackImage : 1; 174 unsigned m_isFallbackImage : 1;
175 175
176 ReferrerPolicy m_referrerPolicy; 176 ReferrerPolicy m_referrerPolicy;
177 }; 177 };
178 178
179 } // namespace blink 179 } // namespace blink
180 180
181 #endif // HTMLImageElement_h 181 #endif // HTMLImageElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698