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

Side by Side Diff: sky/engine/core/html/HTMLImageElement.h

Issue 708233002: Remove many attributes. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/html/HTMLElement.idl ('k') | sky/engine/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual ~HTMLImageElement(); 47 virtual ~HTMLImageElement();
48 virtual void trace(Visitor*) override; 48 virtual void trace(Visitor*) override;
49 49
50 int width(bool ignorePendingStylesheets = false); 50 int width(bool ignorePendingStylesheets = false);
51 int height(bool ignorePendingStylesheets = false); 51 int height(bool ignorePendingStylesheets = false);
52 52
53 int naturalWidth() const; 53 int naturalWidth() const;
54 int naturalHeight() const; 54 int naturalHeight() const;
55 const String& currentSrc() const; 55 const String& currentSrc() const;
56 56
57 bool isServerMap() const;
58
59 const AtomicString& altText() const; 57 const AtomicString& altText() const;
60 58
61 CompositeOperator compositeOperator() const { return m_compositeOperator; }
62
63 ImageResource* cachedImage() const { return imageLoader().image(); } 59 ImageResource* cachedImage() const { return imageLoader().image(); }
64 void setImageResource(ImageResource* i) { imageLoader().setImage(i); }; 60 void setImageResource(ImageResource* i) { imageLoader().setImage(i); };
65 61
66 void setHeight(int); 62 void setHeight(int);
67 63
68 KURL src() const; 64 KURL src() const;
69 void setSrc(const String&); 65 void setSrc(const String&);
70 66
71 void setWidth(int); 67 void setWidth(int);
72 68
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 virtual void removedFrom(ContainerNode*) override; 107 virtual void removedFrom(ContainerNode*) override;
112 virtual Image* imageContents() override; 108 virtual Image* imageContents() override;
113 109
114 void setBestFitURLAndDPRFromImageCandidate(const ImageCandidate&); 110 void setBestFitURLAndDPRFromImageCandidate(const ImageCandidate&);
115 HTMLImageLoader& imageLoader() const { return *m_imageLoader; } 111 HTMLImageLoader& imageLoader() const { return *m_imageLoader; }
116 void notifyViewportChanged(); 112 void notifyViewportChanged();
117 void createMediaQueryListIfDoesNotExist(); 113 void createMediaQueryListIfDoesNotExist();
118 114
119 OwnPtr<HTMLImageLoader> m_imageLoader; 115 OwnPtr<HTMLImageLoader> m_imageLoader;
120 RefPtr<ViewportChangeListener> m_listener; 116 RefPtr<ViewportChangeListener> m_listener;
121 CompositeOperator m_compositeOperator;
122 AtomicString m_bestFitImageURL; 117 AtomicString m_bestFitImageURL;
123 float m_imageDevicePixelRatio; 118 float m_imageDevicePixelRatio;
124 unsigned m_elementCreatedByParser : 1; 119 unsigned m_elementCreatedByParser : 1;
125 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for the picked resource. 120 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for the picked resource.
126 unsigned m_intrinsicSizingViewportDependant : 1; 121 unsigned m_intrinsicSizingViewportDependant : 1;
127 // Effective size is viewport dependant if the sizes attribute's effective s ize used v* length units. 122 // Effective size is viewport dependant if the sizes attribute's effective s ize used v* length units.
128 unsigned m_effectiveSizeViewportDependant : 1; 123 unsigned m_effectiveSizeViewportDependant : 1;
129 }; 124 };
130 125
131 } // namespace blink 126 } // namespace blink
132 127
133 #endif // HTMLImageElement_h 128 #endif // HTMLImageElement_h
OLDNEW
« no previous file with comments | « sky/engine/core/html/HTMLElement.idl ('k') | sky/engine/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698