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

Side by Side Diff: Source/core/html/HTMLImageElement.h

Issue 290203002: <picture>: Update the <img> element when a <source> changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments addressed Created 6 years, 7 months 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 virtual HTMLFormElement* formOwner() const OVERRIDE; 88 virtual HTMLFormElement* formOwner() const OVERRIDE;
89 void formRemovedFromTree(const Node& formRoot); 89 void formRemovedFromTree(const Node& formRoot);
90 90
91 // CanvasImageSourceImplementations 91 // CanvasImageSourceImplementations
92 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma geStatus*) const; 92 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma geStatus*) const;
93 virtual bool wouldTaintOrigin(SecurityOrigin*) const OVERRIDE; 93 virtual bool wouldTaintOrigin(SecurityOrigin*) const OVERRIDE;
94 virtual FloatSize sourceSize() const OVERRIDE; 94 virtual FloatSize sourceSize() const OVERRIDE;
95 virtual FloatSize defaultDestinationSize() const OVERRIDE; 95 virtual FloatSize defaultDestinationSize() const OVERRIDE;
96 96
97 enum UpdateFromElementBehavior {
98 UpdateNormal,
99 UpdateIgnorePreviousError
100 };
101 // public so that HTMLPictureElement can call this as well.
102 void selectSourceURL(UpdateFromElementBehavior);
97 protected: 103 protected:
98 explicit HTMLImageElement(Document&, HTMLFormElement* = 0); 104 explicit HTMLImageElement(Document&, HTMLFormElement* = 0);
99 105
100 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; 106 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE;
101 107
102 private: 108 private:
103 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } 109 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; }
104 110
105 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 111 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
106 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 112 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
(...skipping 30 matching lines...) Expand all
137 CompositeOperator m_compositeOperator; 143 CompositeOperator m_compositeOperator;
138 AtomicString m_bestFitImageURL; 144 AtomicString m_bestFitImageURL;
139 AtomicString m_currentSrc; 145 AtomicString m_currentSrc;
140 float m_imageDevicePixelRatio; 146 float m_imageDevicePixelRatio;
141 bool m_formWasSetByParser; 147 bool m_formWasSetByParser;
142 }; 148 };
143 149
144 } //namespace 150 } //namespace
145 151
146 #endif 152 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698