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

Side by Side Diff: Source/core/svg/SVGStyledElement.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/SVGSVGElement.h ('k') | Source/core/svg/SVGStyledElement.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, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); 74 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&);
75 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s elfHasRelativeLengths(), this); } 75 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s elfHasRelativeLengths(), this); }
76 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGStyledElem ent*); 76 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGStyledElem ent*);
77 77
78 virtual bool selfHasRelativeLengths() const { return false; } 78 virtual bool selfHasRelativeLengths() const { return false; }
79 79
80 private: 80 private:
81 virtual bool isSVGStyledElement() const OVERRIDE { return true; } 81 virtual bool isSVGStyledElement() const OVERRIDE { return true; }
82 82
83 virtual bool isKeyboardFocusable(KeyboardEvent*) const;
84 virtual bool isMouseFocusable() const;
85
86 void buildPendingResourcesIfNeeded(); 83 void buildPendingResourcesIfNeeded();
87 84
88 HashSet<SVGStyledElement*> m_elementsWithRelativeLengths; 85 HashSet<SVGStyledElement*> m_elementsWithRelativeLengths;
89 86
90 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGStyledElement) 87 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGStyledElement)
91 DECLARE_ANIMATED_STRING(ClassName, className) 88 DECLARE_ANIMATED_STRING(ClassName, className)
92 END_DECLARE_ANIMATED_PROPERTIES 89 END_DECLARE_ANIMATED_PROPERTIES
93 }; 90 };
94 91
95 inline SVGStyledElement* toSVGStyledElement(Node* node) 92 inline SVGStyledElement* toSVGStyledElement(Node* node)
96 { 93 {
97 ASSERT_WITH_SECURITY_IMPLICATION(!node || (node->isStyledElement() && node-> isSVGElement())); 94 ASSERT_WITH_SECURITY_IMPLICATION(!node || (node->isStyledElement() && node-> isSVGElement()));
98 return static_cast<SVGStyledElement*>(node); 95 return static_cast<SVGStyledElement*>(node);
99 } 96 }
100 97
101 } // namespace WebCore 98 } // namespace WebCore
102 99
103 #endif // SVGStyledElement 100 #endif // SVGStyledElement
OLDNEW
« no previous file with comments | « Source/core/svg/SVGSVGElement.h ('k') | Source/core/svg/SVGStyledElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698