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

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: revert aggressive svgAttributeChanged, add NeedsRebaseline 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 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } 1381 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); }
1382 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } 1382 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); }
1383 float fillOpacity() const { return svgStyle()->fillOpacity(); } 1383 float fillOpacity() const { return svgStyle()->fillOpacity(); }
1384 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } 1384 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); }
1385 1385
1386 const SVGPaint::SVGPaintType& strokePaintType() const { return svgStyle()->s trokePaintType(); } 1386 const SVGPaint::SVGPaintType& strokePaintType() const { return svgStyle()->s trokePaintType(); }
1387 Color strokePaintColor() const { return svgStyle()->strokePaintColor(); } 1387 Color strokePaintColor() const { return svgStyle()->strokePaintColor(); }
1388 void setStrokePaintColor(const Color& c) { accessSVGStyle()->setStrokePaint( SVGPaint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } 1388 void setStrokePaintColor(const Color& c) { accessSVGStyle()->setStrokePaint( SVGPaint::SVG_PAINTTYPE_RGBCOLOR, c, ""); }
1389 float strokeOpacity() const { return svgStyle()->strokeOpacity(); } 1389 float strokeOpacity() const { return svgStyle()->strokeOpacity(); }
1390 void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); } 1390 void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); }
1391 SVGLength strokeWidth() const { return svgStyle()->strokeWidth(); } 1391 PassRefPtr<SVGLength> strokeWidth() const { return svgStyle()->strokeWidth() ; }
1392 void setStrokeWidth(SVGLength w) { accessSVGStyle()->setStrokeWidth(w); } 1392 void setStrokeWidth(PassRefPtr<SVGLength> w) { accessSVGStyle()->setStrokeWi dth(w); }
1393 Vector<SVGLength> strokeDashArray() const { return svgStyle()->strokeDashArr ay(); } 1393 PassRefPtr<SVGLengthList> strokeDashArray() const { return svgStyle()->strok eDashArray(); }
1394 void setStrokeDashArray(Vector<SVGLength> array) { accessSVGStyle()->setStro keDashArray(array); } 1394 void setStrokeDashArray(PassRefPtr<SVGLengthList> array) { accessSVGStyle()- >setStrokeDashArray(array); }
1395 SVGLength strokeDashOffset() const { return svgStyle()->strokeDashOffset(); } 1395 PassRefPtr<SVGLength> strokeDashOffset() const { return svgStyle()->strokeDa shOffset(); }
1396 void setStrokeDashOffset(SVGLength d) { accessSVGStyle()->setStrokeDashOffse t(d); } 1396 void setStrokeDashOffset(PassRefPtr<SVGLength> d) { accessSVGStyle()->setStr okeDashOffset(d); }
1397 float strokeMiterLimit() const { return svgStyle()->strokeMiterLimit(); } 1397 float strokeMiterLimit() const { return svgStyle()->strokeMiterLimit(); }
1398 void setStrokeMiterLimit(float f) { accessSVGStyle()->setStrokeMiterLimit(f) ; } 1398 void setStrokeMiterLimit(float f) { accessSVGStyle()->setStrokeMiterLimit(f) ; }
1399 1399
1400 float floodOpacity() const { return svgStyle()->floodOpacity(); } 1400 float floodOpacity() const { return svgStyle()->floodOpacity(); }
1401 void setFloodOpacity(float f) { accessSVGStyle()->setFloodOpacity(f); } 1401 void setFloodOpacity(float f) { accessSVGStyle()->setFloodOpacity(f); }
1402 1402
1403 float stopOpacity() const { return svgStyle()->stopOpacity(); } 1403 float stopOpacity() const { return svgStyle()->stopOpacity(); }
1404 void setStopOpacity(float f) { accessSVGStyle()->setStopOpacity(f); } 1404 void setStopOpacity(float f) { accessSVGStyle()->setStopOpacity(f); }
1405 1405
1406 void setStopColor(const Color& c) { accessSVGStyle()->setStopColor(c); } 1406 void setStopColor(const Color& c) { accessSVGStyle()->setStopColor(c); }
1407 void setFloodColor(const Color& c) { accessSVGStyle()->setFloodColor(c); } 1407 void setFloodColor(const Color& c) { accessSVGStyle()->setFloodColor(c); }
1408 void setLightingColor(const Color& c) { accessSVGStyle()->setLightingColor(c ); } 1408 void setLightingColor(const Color& c) { accessSVGStyle()->setLightingColor(c ); }
1409 1409
1410 SVGLength baselineShiftValue() const { return svgStyle()->baselineShiftValue (); } 1410 PassRefPtr<SVGLength> baselineShiftValue() const { return svgStyle()->baseli neShiftValue(); }
1411 void setBaselineShiftValue(SVGLength s) { accessSVGStyle()->setBaselineShift Value(s); } 1411 void setBaselineShiftValue(PassRefPtr<SVGLength> s) { accessSVGStyle()->setB aselineShiftValue(s); }
1412 SVGLength kerning() const { return svgStyle()->kerning(); } 1412 PassRefPtr<SVGLength> kerning() const { return svgStyle()->kerning(); }
1413 void setKerning(SVGLength k) { accessSVGStyle()->setKerning(k); } 1413 void setKerning(PassRefPtr<SVGLength> k) { accessSVGStyle()->setKerning(k); }
1414 1414
1415 void setShapeInside(PassRefPtr<ShapeValue> value) 1415 void setShapeInside(PassRefPtr<ShapeValue> value)
1416 { 1416 {
1417 if (rareNonInheritedData->m_shapeInside == value) 1417 if (rareNonInheritedData->m_shapeInside == value)
1418 return; 1418 return;
1419 rareNonInheritedData.access()->m_shapeInside = value; 1419 rareNonInheritedData.access()->m_shapeInside = value;
1420 } 1420 }
1421 ShapeValue* shapeInside() const { return rareNonInheritedData->m_shapeInside .get(); } 1421 ShapeValue* shapeInside() const { return rareNonInheritedData->m_shapeInside .get(); }
1422 ShapeValue* resolvedShapeInside() const 1422 ShapeValue* resolvedShapeInside() const
1423 { 1423 {
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
1874 inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo) 1874 inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo)
1875 { 1875 {
1876 ASSERT(pseudo > NOPSEUDO); 1876 ASSERT(pseudo > NOPSEUDO);
1877 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID); 1877 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID);
1878 noninherited_flags._pseudoBits |= 1 << (pseudo - 1); 1878 noninherited_flags._pseudoBits |= 1 << (pseudo - 1);
1879 } 1879 }
1880 1880
1881 } // namespace WebCore 1881 } // namespace WebCore
1882 1882
1883 #endif // RenderStyle_h 1883 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « Source/core/frame/animation/CSSPropertyAnimation.cpp ('k') | Source/core/rendering/style/SVGRenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698