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

Side by Side Diff: Source/core/rendering/style/SVGRenderStyleDefs.cpp

Issue 234453002: Remove SVG1.1 kerning property (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More TestExpectations updates Created 6 years, 8 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
OLDNEW
1 /* 1 /*
2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005, 2007 Rob Buis <buis@kde.org> 3 2004, 2005, 2007 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 Based on khtml code by: 6 Based on khtml code by:
7 Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) 7 Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
8 Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) 8 Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org)
9 Copyright (C) 2002-2003 Dirk Mueller (mueller@kde.org) 9 Copyright (C) 2002-2003 Dirk Mueller (mueller@kde.org)
10 Copyright (C) 2002 Apple Computer, Inc. 10 Copyright (C) 2002 Apple Computer, Inc.
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 , color(other.color) 125 , color(other.color)
126 { 126 {
127 } 127 }
128 128
129 bool StyleStopData::operator==(const StyleStopData& other) const 129 bool StyleStopData::operator==(const StyleStopData& other) const
130 { 130 {
131 return color == other.color 131 return color == other.color
132 && opacity == other.opacity; 132 && opacity == other.opacity;
133 } 133 }
134 134
135 StyleTextData::StyleTextData()
136 : kerning(SVGRenderStyle::initialKerning())
137 {
138 }
139
140 StyleTextData::StyleTextData(const StyleTextData& other)
141 : RefCounted<StyleTextData>()
142 , kerning(other.kerning->clone())
143 {
144 }
145
146 bool StyleTextData::operator==(const StyleTextData& other) const
147 {
148 return *kerning == *other.kerning;
149 }
150
151 StyleMiscData::StyleMiscData() 135 StyleMiscData::StyleMiscData()
152 : floodColor(SVGRenderStyle::initialFloodColor()) 136 : floodColor(SVGRenderStyle::initialFloodColor())
153 , floodOpacity(SVGRenderStyle::initialFloodOpacity()) 137 , floodOpacity(SVGRenderStyle::initialFloodOpacity())
154 , lightingColor(SVGRenderStyle::initialLightingColor()) 138 , lightingColor(SVGRenderStyle::initialLightingColor())
155 , baselineShiftValue(SVGRenderStyle::initialBaselineShiftValue()) 139 , baselineShiftValue(SVGRenderStyle::initialBaselineShiftValue())
156 { 140 {
157 } 141 }
158 142
159 StyleMiscData::StyleMiscData(const StyleMiscData& other) 143 StyleMiscData::StyleMiscData(const StyleMiscData& other)
160 : RefCounted<StyleMiscData>() 144 : RefCounted<StyleMiscData>()
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 } 195 }
212 196
213 bool StyleInheritedResourceData::operator==(const StyleInheritedResourceData& ot her) const 197 bool StyleInheritedResourceData::operator==(const StyleInheritedResourceData& ot her) const
214 { 198 {
215 return markerStart == other.markerStart 199 return markerStart == other.markerStart
216 && markerMid == other.markerMid 200 && markerMid == other.markerMid
217 && markerEnd == other.markerEnd; 201 && markerEnd == other.markerEnd;
218 } 202 }
219 203
220 } 204 }
OLDNEW
« no previous file with comments | « Source/core/rendering/style/SVGRenderStyleDefs.h ('k') | Source/core/rendering/svg/SVGTextLayoutEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698