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

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

Issue 858533002: Simplify HTMLImageElement::canStartSelection() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 private: 116 private:
117 virtual bool areAuthorShadowsAllowed() const override { return false; } 117 virtual bool areAuthorShadowsAllowed() const override { return false; }
118 118
119 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 119 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
120 virtual bool isPresentationAttribute(const QualifiedName&) const override; 120 virtual bool isPresentationAttribute(const QualifiedName&) const override;
121 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override; 121 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override;
122 122
123 virtual void attach(const AttachContext& = AttachContext()) override; 123 virtual void attach(const AttachContext& = AttachContext()) override;
124 virtual RenderObject* createRenderer(RenderStyle*) override; 124 virtual RenderObject* createRenderer(RenderStyle*) override;
125 125
126 virtual bool canStartSelection() const override; 126 virtual bool canStartSelection() const override { return false; }
127 127
128 virtual bool isURLAttribute(const Attribute&) const override; 128 virtual bool isURLAttribute(const Attribute&) const override;
129 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override; 129 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override;
130 virtual const QualifiedName& subResourceAttributeName() const override; 130 virtual const QualifiedName& subResourceAttributeName() const override;
131 131
132 virtual bool draggable() const override; 132 virtual bool draggable() const override;
133 133
134 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; 134 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override;
135 virtual void removedFrom(ContainerNode*) override; 135 virtual void removedFrom(ContainerNode*) override;
136 virtual bool shouldRegisterAsNamedItem() const override { return true; } 136 virtual bool shouldRegisterAsNamedItem() const override { return true; }
(...skipping 21 matching lines...) Expand all
158 unsigned m_elementCreatedByParser : 1; 158 unsigned m_elementCreatedByParser : 1;
159 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for the picked resource. 159 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for the picked resource.
160 unsigned m_intrinsicSizingViewportDependant : 1; 160 unsigned m_intrinsicSizingViewportDependant : 1;
161 unsigned m_useFallbackContent : 1; 161 unsigned m_useFallbackContent : 1;
162 unsigned m_isFallbackImage : 1; 162 unsigned m_isFallbackImage : 1;
163 }; 163 };
164 164
165 } // namespace blink 165 } // namespace blink
166 166
167 #endif // HTMLImageElement_h 167 #endif // HTMLImageElement_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698