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

Side by Side Diff: Source/core/layout/style/SVGLayoutStyleDefs.h

Issue 956553004: Use Length for baselineShiftValue in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: A few more TEs. Created 5 years, 10 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 Rob Buis <buis@kde.org> 3 2004, 2005 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) 2000-2003 Lars Knoll (knoll@kde.org) 7 Copyright (C) 2000-2003 Lars Knoll (knoll@kde.org)
8 (C) 2000 Antti Koivisto (koivisto@kde.org) 8 (C) 2000 Antti Koivisto (koivisto@kde.org)
9 (C) 2000-2003 Dirk Mueller (mueller@kde.org) 9 (C) 2000-2003 Dirk Mueller (mueller@kde.org)
10 (C) 2002-2003 Apple Computer, Inc. 10 (C) 2002-2003 Apple Computer, Inc.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 SVG_PAINTTYPE_RGBCOLOR, 42 SVG_PAINTTYPE_RGBCOLOR,
43 SVG_PAINTTYPE_NONE, 43 SVG_PAINTTYPE_NONE,
44 SVG_PAINTTYPE_CURRENTCOLOR, 44 SVG_PAINTTYPE_CURRENTCOLOR,
45 SVG_PAINTTYPE_URI_NONE, 45 SVG_PAINTTYPE_URI_NONE,
46 SVG_PAINTTYPE_URI_CURRENTCOLOR, 46 SVG_PAINTTYPE_URI_CURRENTCOLOR,
47 SVG_PAINTTYPE_URI_RGBCOLOR, 47 SVG_PAINTTYPE_URI_RGBCOLOR,
48 SVG_PAINTTYPE_URI 48 SVG_PAINTTYPE_URI
49 }; 49 };
50 50
51 enum EBaselineShift { 51 enum EBaselineShift {
52 BS_BASELINE, BS_SUB, BS_SUPER, BS_LENGTH 52 BS_LENGTH, BS_SUB, BS_SUPER
53 }; 53 };
54 54
55 enum ETextAnchor { 55 enum ETextAnchor {
56 TA_START, TA_MIDDLE, TA_END 56 TA_START, TA_MIDDLE, TA_END
57 }; 57 };
58 58
59 enum EColorInterpolation { 59 enum EColorInterpolation {
60 CI_AUTO, CI_SRGB, CI_LINEARRGB 60 CI_AUTO, CI_SRGB, CI_LINEARRGB
61 }; 61 };
62 62
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 bool operator==(const StyleMiscData&) const; 204 bool operator==(const StyleMiscData&) const;
205 bool operator!=(const StyleMiscData& other) const 205 bool operator!=(const StyleMiscData& other) const
206 { 206 {
207 return !(*this == other); 207 return !(*this == other);
208 } 208 }
209 209
210 Color floodColor; 210 Color floodColor;
211 float floodOpacity; 211 float floodOpacity;
212 Color lightingColor; 212 Color lightingColor;
213 213
214 RefPtrWillBePersistent<SVGLength> baselineShiftValue; 214 Length baselineShiftValue;
215 215
216 private: 216 private:
217 StyleMiscData(); 217 StyleMiscData();
218 StyleMiscData(const StyleMiscData&); 218 StyleMiscData(const StyleMiscData&);
219 }; 219 };
220 220
221 // Non-inherited resources 221 // Non-inherited resources
222 class StyleResourceData : public RefCounted<StyleResourceData> { 222 class StyleResourceData : public RefCounted<StyleResourceData> {
223 public: 223 public:
224 static PassRefPtr<StyleResourceData> create() { return adoptRef(new StyleRes ourceData); } 224 static PassRefPtr<StyleResourceData> create() { return adoptRef(new StyleRes ourceData); }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 Length x; 273 Length x;
274 Length y; 274 Length y;
275 private: 275 private:
276 StyleLayoutData(); 276 StyleLayoutData();
277 StyleLayoutData(const StyleLayoutData&); 277 StyleLayoutData(const StyleLayoutData&);
278 }; 278 };
279 279
280 } // namespace blink 280 } // namespace blink
281 281
282 #endif // SVGLayoutStyleDefs_h 282 #endif // SVGLayoutStyleDefs_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698