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

Side by Side Diff: Source/core/svg/SVGAngle.cpp

Issue 803443002: Introduce InlinedGlobalMarkingVisitor Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 | « Source/core/svg/SVGAngle.h ('k') | Source/core/svg/SVGIntegerOptionalInteger.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, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007, 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) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 SVGMarkerOrientEnumeration::SVGMarkerOrientEnumeration(SVGAngle* angle) 51 SVGMarkerOrientEnumeration::SVGMarkerOrientEnumeration(SVGAngle* angle)
52 : SVGEnumeration<SVGMarkerOrientType>(SVGMarkerOrientAngle) 52 : SVGEnumeration<SVGMarkerOrientType>(SVGMarkerOrientAngle)
53 , m_angle(angle) 53 , m_angle(angle)
54 { 54 {
55 } 55 }
56 56
57 SVGMarkerOrientEnumeration::~SVGMarkerOrientEnumeration() 57 SVGMarkerOrientEnumeration::~SVGMarkerOrientEnumeration()
58 { 58 {
59 } 59 }
60 60
61 void SVGMarkerOrientEnumeration::trace(Visitor* visitor) 61 DEFINE_TRACE(SVGMarkerOrientEnumeration)
62 { 62 {
63 visitor->trace(m_angle); 63 visitor->trace(m_angle);
64 SVGEnumeration<SVGMarkerOrientType>::trace(visitor); 64 SVGEnumeration<SVGMarkerOrientType>::trace(visitor);
65 } 65 }
66 66
67 void SVGMarkerOrientEnumeration::notifyChange() 67 void SVGMarkerOrientEnumeration::notifyChange()
68 { 68 {
69 ASSERT(m_angle); 69 ASSERT(m_angle);
70 m_angle->orientTypeChanged(); 70 m_angle->orientTypeChanged();
71 } 71 }
(...skipping 29 matching lines...) Expand all
101 , m_valueInSpecifiedUnits(valueInSpecifiedUnits) 101 , m_valueInSpecifiedUnits(valueInSpecifiedUnits)
102 , m_orientType(SVGMarkerOrientEnumeration::create(this)) 102 , m_orientType(SVGMarkerOrientEnumeration::create(this))
103 { 103 {
104 m_orientType->setEnumValue(orientType); 104 m_orientType->setEnumValue(orientType);
105 } 105 }
106 106
107 SVGAngle::~SVGAngle() 107 SVGAngle::~SVGAngle()
108 { 108 {
109 } 109 }
110 110
111 void SVGAngle::trace(Visitor* visitor) 111 DEFINE_TRACE(SVGAngle)
112 { 112 {
113 visitor->trace(m_orientType); 113 visitor->trace(m_orientType);
114 SVGPropertyHelper<SVGAngle>::trace(visitor); 114 SVGPropertyHelper<SVGAngle>::trace(visitor);
115 } 115 }
116 116
117 PassRefPtrWillBeRawPtr<SVGAngle> SVGAngle::clone() const 117 PassRefPtrWillBeRawPtr<SVGAngle> SVGAngle::clone() const
118 { 118 {
119 return adoptRefWillBeNoop(new SVGAngle(m_unitType, m_valueInSpecifiedUnits, m_orientType->enumValue())); 119 return adoptRefWillBeNoop(new SVGAngle(m_unitType, m_valueInSpecifiedUnits, m_orientType->enumValue()));
120 } 120 }
121 121
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 442
443 void SVGAngle::orientTypeChanged() 443 void SVGAngle::orientTypeChanged()
444 { 444 {
445 if (orientType()->enumValue() == SVGMarkerOrientAuto || orientType()->enumVa lue() == SVGMarkerOrientAutoStartReverse) { 445 if (orientType()->enumValue() == SVGMarkerOrientAuto || orientType()->enumVa lue() == SVGMarkerOrientAutoStartReverse) {
446 m_unitType = SVG_ANGLETYPE_UNSPECIFIED; 446 m_unitType = SVG_ANGLETYPE_UNSPECIFIED;
447 m_valueInSpecifiedUnits = 0; 447 m_valueInSpecifiedUnits = 0;
448 } 448 }
449 } 449 }
450 450
451 } 451 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAngle.h ('k') | Source/core/svg/SVGIntegerOptionalInteger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698