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

Side by Side Diff: Source/core/rendering/style/RenderStyle.h

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix tests Created 6 years, 11 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1377 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } 1377 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); }
1378 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } 1378 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); }
1379 float fillOpacity() const { return svgStyle()->fillOpacity(); } 1379 float fillOpacity() const { return svgStyle()->fillOpacity(); }
1380 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } 1380 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); }
1381 1381
1382 const SVGPaint::SVGPaintType& strokePaintType() const { return svgStyle()->s trokePaintType(); } 1382 const SVGPaint::SVGPaintType& strokePaintType() const { return svgStyle()->s trokePaintType(); }
1383 Color strokePaintColor() const { return svgStyle()->strokePaintColor(); } 1383 Color strokePaintColor() const { return svgStyle()->strokePaintColor(); }
1384 void setStrokePaintColor(const Color& c) { accessSVGStyle()->setStrokePaint( SVGPaint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } 1384 void setStrokePaintColor(const Color& c) { accessSVGStyle()->setStrokePaint( SVGPaint::SVG_PAINTTYPE_RGBCOLOR, c, ""); }
1385 float strokeOpacity() const { return svgStyle()->strokeOpacity(); } 1385 float strokeOpacity() const { return svgStyle()->strokeOpacity(); }
1386 void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); } 1386 void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); }
1387 SVGLength strokeWidth() const { return svgStyle()->strokeWidth(); } 1387 PassRefPtr<SVGLength> strokeWidth() const { return svgStyle()->strokeWidth() ; }
1388 void setStrokeWidth(SVGLength w) { accessSVGStyle()->setStrokeWidth(w); } 1388 void setStrokeWidth(PassRefPtr<SVGLength> w) { accessSVGStyle()->setStrokeWi dth(w); }
1389 Vector<SVGLength> strokeDashArray() const { return svgStyle()->strokeDashArr ay(); } 1389 PassRefPtr<SVGLengthList> strokeDashArray() const { return svgStyle()->strok eDashArray(); }
1390 void setStrokeDashArray(Vector<SVGLength> array) { accessSVGStyle()->setStro keDashArray(array); } 1390 void setStrokeDashArray(PassRefPtr<SVGLengthList> array) { accessSVGStyle()- >setStrokeDashArray(array); }
1391 SVGLength strokeDashOffset() const { return svgStyle()->strokeDashOffset(); } 1391 PassRefPtr<SVGLength> strokeDashOffset() const { return svgStyle()->strokeDa shOffset(); }
1392 void setStrokeDashOffset(SVGLength d) { accessSVGStyle()->setStrokeDashOffse t(d); } 1392 void setStrokeDashOffset(PassRefPtr<SVGLength> d) { accessSVGStyle()->setStr okeDashOffset(d); }
1393 float strokeMiterLimit() const { return svgStyle()->strokeMiterLimit(); } 1393 float strokeMiterLimit() const { return svgStyle()->strokeMiterLimit(); }
1394 void setStrokeMiterLimit(float f) { accessSVGStyle()->setStrokeMiterLimit(f) ; } 1394 void setStrokeMiterLimit(float f) { accessSVGStyle()->setStrokeMiterLimit(f) ; }
1395 1395
1396 float floodOpacity() const { return svgStyle()->floodOpacity(); } 1396 float floodOpacity() const { return svgStyle()->floodOpacity(); }
1397 void setFloodOpacity(float f) { accessSVGStyle()->setFloodOpacity(f); } 1397 void setFloodOpacity(float f) { accessSVGStyle()->setFloodOpacity(f); }
1398 1398
1399 float stopOpacity() const { return svgStyle()->stopOpacity(); } 1399 float stopOpacity() const { return svgStyle()->stopOpacity(); }
1400 void setStopOpacity(float f) { accessSVGStyle()->setStopOpacity(f); } 1400 void setStopOpacity(float f) { accessSVGStyle()->setStopOpacity(f); }
1401 1401
1402 void setStopColor(const Color& c) { accessSVGStyle()->setStopColor(c); } 1402 void setStopColor(const Color& c) { accessSVGStyle()->setStopColor(c); }
1403 void setFloodColor(const Color& c) { accessSVGStyle()->setFloodColor(c); } 1403 void setFloodColor(const Color& c) { accessSVGStyle()->setFloodColor(c); }
1404 void setLightingColor(const Color& c) { accessSVGStyle()->setLightingColor(c ); } 1404 void setLightingColor(const Color& c) { accessSVGStyle()->setLightingColor(c ); }
1405 1405
1406 SVGLength baselineShiftValue() const { return svgStyle()->baselineShiftValue (); } 1406 PassRefPtr<SVGLength> baselineShiftValue() const { return svgStyle()->baseli neShiftValue(); }
1407 void setBaselineShiftValue(SVGLength s) { accessSVGStyle()->setBaselineShift Value(s); } 1407 void setBaselineShiftValue(PassRefPtr<SVGLength> s) { accessSVGStyle()->setB aselineShiftValue(s); }
1408 SVGLength kerning() const { return svgStyle()->kerning(); } 1408 PassRefPtr<SVGLength> kerning() const { return svgStyle()->kerning(); }
1409 void setKerning(SVGLength k) { accessSVGStyle()->setKerning(k); } 1409 void setKerning(PassRefPtr<SVGLength> k) { accessSVGStyle()->setKerning(k); }
1410 1410
1411 void setShapeInside(PassRefPtr<ShapeValue> value) 1411 void setShapeInside(PassRefPtr<ShapeValue> value)
1412 { 1412 {
1413 if (rareNonInheritedData->m_shapeInside == value) 1413 if (rareNonInheritedData->m_shapeInside == value)
1414 return; 1414 return;
1415 rareNonInheritedData.access()->m_shapeInside = value; 1415 rareNonInheritedData.access()->m_shapeInside = value;
1416 } 1416 }
1417 ShapeValue* shapeInside() const { return rareNonInheritedData->m_shapeInside .get(); } 1417 ShapeValue* shapeInside() const { return rareNonInheritedData->m_shapeInside .get(); }
1418 ShapeValue* resolvedShapeInside() const 1418 ShapeValue* resolvedShapeInside() const
1419 { 1419 {
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
1868 inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo) 1868 inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo)
1869 { 1869 {
1870 ASSERT(pseudo > NOPSEUDO); 1870 ASSERT(pseudo > NOPSEUDO);
1871 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID); 1871 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID);
1872 noninherited_flags._pseudoBits |= 1 << (pseudo - 1); 1872 noninherited_flags._pseudoBits |= 1 << (pseudo - 1);
1873 } 1873 }
1874 1874
1875 } // namespace WebCore 1875 } // namespace WebCore
1876 1876
1877 #endif // RenderStyle_h 1877 #endif // RenderStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698