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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGAElement.cpp

Issue 2436793002: Simplify SVGAnimated* initialization (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGAnimatedBoolean.h » ('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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 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 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2010 Apple 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 #include "platform/PlatformMouseEvent.h" 47 #include "platform/PlatformMouseEvent.h"
48 #include "platform/network/ResourceRequest.h" 48 #include "platform/network/ResourceRequest.h"
49 49
50 namespace blink { 50 namespace blink {
51 51
52 using namespace HTMLNames; 52 using namespace HTMLNames;
53 53
54 inline SVGAElement::SVGAElement(Document& document) 54 inline SVGAElement::SVGAElement(Document& document)
55 : SVGGraphicsElement(SVGNames::aTag, document), 55 : SVGGraphicsElement(SVGNames::aTag, document),
56 SVGURIReference(this), 56 SVGURIReference(this),
57 m_svgTarget(SVGAnimatedString::create(this, 57 m_svgTarget(SVGAnimatedString::create(this, SVGNames::targetAttr)),
58 SVGNames::targetAttr,
59 SVGString::create())),
60 m_wasFocusedByMouse(false) { 58 m_wasFocusedByMouse(false) {
61 addToPropertyMap(m_svgTarget); 59 addToPropertyMap(m_svgTarget);
62 } 60 }
63 61
64 DEFINE_TRACE(SVGAElement) { 62 DEFINE_TRACE(SVGAElement) {
65 visitor->trace(m_svgTarget); 63 visitor->trace(m_svgTarget);
66 SVGGraphicsElement::trace(visitor); 64 SVGGraphicsElement::trace(visitor);
67 SVGURIReference::trace(visitor); 65 SVGURIReference::trace(visitor);
68 } 66 }
69 67
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 if (!isLink()) 209 if (!isLink())
212 return SVGElement::canStartSelection(); 210 return SVGElement::canStartSelection();
213 return hasEditableStyle(*this); 211 return hasEditableStyle(*this);
214 } 212 }
215 213
216 bool SVGAElement::willRespondToMouseClickEvents() { 214 bool SVGAElement::willRespondToMouseClickEvents() {
217 return isLink() || SVGGraphicsElement::willRespondToMouseClickEvents(); 215 return isLink() || SVGGraphicsElement::willRespondToMouseClickEvents();
218 } 216 }
219 217
220 } // namespace blink 218 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGAnimatedBoolean.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698