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

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

Issue 991533003: Handle more <length> properties in animation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: stroke-dashoffset setter exists + fixups + add tests Created 5 years, 9 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
« no previous file with comments | « Source/core/css/resolver/AnimatedStyleBuilder.cpp ('k') | no next file » | 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) 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 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after
1369 void setStrokeOpacity(float f) { accessSVGStyle().setStrokeOpacity(f); } 1369 void setStrokeOpacity(float f) { accessSVGStyle().setStrokeOpacity(f); }
1370 const UnzoomedLength& strokeWidth() const { return svgStyle().strokeWidth(); } 1370 const UnzoomedLength& strokeWidth() const { return svgStyle().strokeWidth(); }
1371 void setStrokeWidth(const UnzoomedLength& w) { accessSVGStyle().setStrokeWid th(w); } 1371 void setStrokeWidth(const UnzoomedLength& w) { accessSVGStyle().setStrokeWid th(w); }
1372 SVGDashArray* strokeDashArray() const { return svgStyle().strokeDashArray(); } 1372 SVGDashArray* strokeDashArray() const { return svgStyle().strokeDashArray(); }
1373 void setStrokeDashArray(PassRefPtr<SVGDashArray> array) { accessSVGStyle().s etStrokeDashArray(array); } 1373 void setStrokeDashArray(PassRefPtr<SVGDashArray> array) { accessSVGStyle().s etStrokeDashArray(array); }
1374 const Length& strokeDashOffset() const { return svgStyle().strokeDashOffset( ); } 1374 const Length& strokeDashOffset() const { return svgStyle().strokeDashOffset( ); }
1375 void setStrokeDashOffset(const Length& d) { accessSVGStyle().setStrokeDashOf fset(d); } 1375 void setStrokeDashOffset(const Length& d) { accessSVGStyle().setStrokeDashOf fset(d); }
1376 float strokeMiterLimit() const { return svgStyle().strokeMiterLimit(); } 1376 float strokeMiterLimit() const { return svgStyle().strokeMiterLimit(); }
1377 void setStrokeMiterLimit(float f) { accessSVGStyle().setStrokeMiterLimit(f); } 1377 void setStrokeMiterLimit(float f) { accessSVGStyle().setStrokeMiterLimit(f); }
1378 1378
1379 void setCx(Length cx) { accessSVGStyle().setCx(cx); } 1379 void setCx(const Length& cx) { accessSVGStyle().setCx(cx); }
1380 void setCy(Length cy) { accessSVGStyle().setCy(cy); } 1380 void setCy(const Length& cy) { accessSVGStyle().setCy(cy); }
1381 void setX(Length x) { accessSVGStyle().setX(x); } 1381 void setX(const Length& x) { accessSVGStyle().setX(x); }
1382 void setY(Length y) { accessSVGStyle().setY(y); } 1382 void setY(const Length& y) { accessSVGStyle().setY(y); }
1383 void setR(Length r) { accessSVGStyle().setR(r); } 1383 void setR(const Length& r) { accessSVGStyle().setR(r); }
1384 void setRx(Length rx) { accessSVGStyle().setRx(rx); } 1384 void setRx(const Length& rx) { accessSVGStyle().setRx(rx); }
1385 void setRy(Length ry) { accessSVGStyle().setRy(ry); } 1385 void setRy(const Length& ry) { accessSVGStyle().setRy(ry); }
1386 1386
1387 float floodOpacity() const { return svgStyle().floodOpacity(); } 1387 float floodOpacity() const { return svgStyle().floodOpacity(); }
1388 void setFloodOpacity(float f) { accessSVGStyle().setFloodOpacity(f); } 1388 void setFloodOpacity(float f) { accessSVGStyle().setFloodOpacity(f); }
1389 1389
1390 float stopOpacity() const { return svgStyle().stopOpacity(); } 1390 float stopOpacity() const { return svgStyle().stopOpacity(); }
1391 void setStopOpacity(float f) { accessSVGStyle().setStopOpacity(f); } 1391 void setStopOpacity(float f) { accessSVGStyle().setStopOpacity(f); }
1392 1392
1393 void setStopColor(const Color& c) { accessSVGStyle().setStopColor(c); } 1393 void setStopColor(const Color& c) { accessSVGStyle().setStopColor(c); }
1394 void setFloodColor(const Color& c) { accessSVGStyle().setFloodColor(c); } 1394 void setFloodColor(const Color& c) { accessSVGStyle().setFloodColor(c); }
1395 void setLightingColor(const Color& c) { accessSVGStyle().setLightingColor(c) ; } 1395 void setLightingColor(const Color& c) { accessSVGStyle().setLightingColor(c) ; }
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
1863 } 1863 }
1864 1864
1865 inline bool LayoutStyle::hasPseudoElementStyle() const 1865 inline bool LayoutStyle::hasPseudoElementStyle() const
1866 { 1866 {
1867 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1867 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1868 } 1868 }
1869 1869
1870 } // namespace blink 1870 } // namespace blink
1871 1871
1872 #endif // LayoutStyle_h 1872 #endif // LayoutStyle_h
OLDNEW
« no previous file with comments | « Source/core/css/resolver/AnimatedStyleBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698