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

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

Issue 693243002: Remove interactive content and form related API from HTMLElement. (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.cpp ('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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual RenderObject* createRenderer(RenderStyle*) override; 104 virtual RenderObject* createRenderer(RenderStyle*) override;
105 105
106 virtual bool canStartSelection() const override; 106 virtual bool canStartSelection() const override;
107 107
108 virtual bool isURLAttribute(const Attribute&) const override; 108 virtual bool isURLAttribute(const Attribute&) const override;
109 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override; 109 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override;
110 virtual const QualifiedName& subResourceAttributeName() const override; 110 virtual const QualifiedName& subResourceAttributeName() const override;
111 111
112 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; 112 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override;
113 virtual void removedFrom(ContainerNode*) override; 113 virtual void removedFrom(ContainerNode*) override;
114 virtual bool isInteractiveContent() const override;
115 virtual Image* imageContents() override; 114 virtual Image* imageContents() override;
116 115
117 ImageCandidate findBestFitImageFromPictureParent(); 116 ImageCandidate findBestFitImageFromPictureParent();
118 void setBestFitURLAndDPRFromImageCandidate(const ImageCandidate&); 117 void setBestFitURLAndDPRFromImageCandidate(const ImageCandidate&);
119 HTMLImageLoader& imageLoader() const { return *m_imageLoader; } 118 HTMLImageLoader& imageLoader() const { return *m_imageLoader; }
120 void notifyViewportChanged(); 119 void notifyViewportChanged();
121 void createMediaQueryListIfDoesNotExist(); 120 void createMediaQueryListIfDoesNotExist();
122 121
123 OwnPtr<HTMLImageLoader> m_imageLoader; 122 OwnPtr<HTMLImageLoader> m_imageLoader;
124 RefPtr<ViewportChangeListener> m_listener; 123 RefPtr<ViewportChangeListener> m_listener;
125 CompositeOperator m_compositeOperator; 124 CompositeOperator m_compositeOperator;
126 AtomicString m_bestFitImageURL; 125 AtomicString m_bestFitImageURL;
127 float m_imageDevicePixelRatio; 126 float m_imageDevicePixelRatio;
128 unsigned m_elementCreatedByParser : 1; 127 unsigned m_elementCreatedByParser : 1;
129 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for the picked resource. 128 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for the picked resource.
130 unsigned m_intrinsicSizingViewportDependant : 1; 129 unsigned m_intrinsicSizingViewportDependant : 1;
131 // Effective size is viewport dependant if the sizes attribute's effective s ize used v* length units. 130 // Effective size is viewport dependant if the sizes attribute's effective s ize used v* length units.
132 unsigned m_effectiveSizeViewportDependant : 1; 131 unsigned m_effectiveSizeViewportDependant : 1;
133 }; 132 };
134 133
135 } // namespace blink 134 } // namespace blink
136 135
137 #endif // HTMLImageElement_h 136 #endif // HTMLImageElement_h
OLDNEW
« no previous file with comments | « sky/engine/core/html/HTMLElement.cpp ('k') | sky/engine/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698