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

Side by Side Diff: Source/core/svg/SVGElement.h

Issue 20670002: REGRESSION: Click on focused link should not remove focus on it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: typo Created 7 years, 4 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 | « Source/core/svg/SVGCircleElement.h ('k') | Source/core/svg/SVGElement.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) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual void finishParsingChildren(); 129 virtual void finishParsingChildren();
130 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att ributeModificationReason = ModifiedDirectly) OVERRIDE; 130 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att ributeModificationReason = ModifiedDirectly) OVERRIDE;
131 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OV ERRIDE; 131 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OV ERRIDE;
132 132
133 virtual void removedFrom(ContainerNode*) OVERRIDE; 133 virtual void removedFrom(ContainerNode*) OVERRIDE;
134 134
135 SVGElementRareData* svgRareData() const; 135 SVGElementRareData* svgRareData() const;
136 SVGElementRareData* ensureSVGRareData(); 136 SVGElementRareData* ensureSVGRareData();
137 137
138 void reportAttributeParsingError(SVGParsingError, const QualifiedName&, cons t AtomicString&); 138 void reportAttributeParsingError(SVGParsingError, const QualifiedName&, cons t AtomicString&);
139 bool hasFocusEventListeners() const;
139 140
140 private: 141 private:
141 friend class SVGElementInstance; 142 friend class SVGElementInstance;
142 143
143 // FIXME: Author shadows should be allowed 144 // FIXME: Author shadows should be allowed
144 // https://bugs.webkit.org/show_bug.cgi?id=77938 145 // https://bugs.webkit.org/show_bug.cgi?id=77938
145 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } 146 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; }
146 147
147 RenderStyle* computedStyle(PseudoId = NOPSEUDO); 148 RenderStyle* computedStyle(PseudoId = NOPSEUDO);
148 virtual RenderStyle* virtualComputedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) { return computedStyle(pseudoElementSpecifier); } 149 virtual RenderStyle* virtualComputedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) { return computedStyle(pseudoElementSpecifier); }
149 virtual void willRecalcStyle(StyleChange) OVERRIDE; 150 virtual void willRecalcStyle(StyleChange) OVERRIDE;
150 151 virtual bool isKeyboardFocusable(KeyboardEvent*) const OVERRIDE;
151 virtual bool rendererIsNeeded(const NodeRenderingContext&) { return false; } 152 virtual bool rendererIsNeeded(const NodeRenderingContext&) { return false; }
152 153
153 virtual bool isSupported(StringImpl* feature, StringImpl* version) const; 154 virtual bool isSupported(StringImpl* feature, StringImpl* version) const;
154 155
155 void mapInstanceToElement(SVGElementInstance*); 156 void mapInstanceToElement(SVGElementInstance*);
156 void removeInstanceMapping(SVGElementInstance*); 157 void removeInstanceMapping(SVGElementInstance*);
157 158
158 }; 159 };
159 160
160 struct SVGAttributeHashTranslator { 161 struct SVGAttributeHashTranslator {
(...skipping 16 matching lines...) Expand all
177 178
178 inline const SVGElement* toSVGElement(const Node* node) 179 inline const SVGElement* toSVGElement(const Node* node)
179 { 180 {
180 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); 181 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement());
181 return static_cast<const SVGElement*>(node); 182 return static_cast<const SVGElement*>(node);
182 } 183 }
183 184
184 } 185 }
185 186
186 #endif 187 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGCircleElement.h ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698