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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGLengthContext.h

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: More fixes - things build fine at this point. Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 27 matching lines...) Expand all
38 STACK_ALLOCATED(); 38 STACK_ALLOCATED();
39 39
40 public: 40 public:
41 explicit SVGLengthContext(const SVGElement*); 41 explicit SVGLengthContext(const SVGElement*);
42 42
43 template <typename T> 43 template <typename T>
44 static FloatRect resolveRectangle(const T* context, 44 static FloatRect resolveRectangle(const T* context,
45 SVGUnitTypes::SVGUnitType type, 45 SVGUnitTypes::SVGUnitType type,
46 const FloatRect& viewport) { 46 const FloatRect& viewport) {
47 return resolveRectangle( 47 return resolveRectangle(
48 /* DO NOT SUBMIT - merge conflict marker
49 * Spell |x|, |y|, |width|, |height| below. */
48 context, type, viewport, *context->x()->currentValue(), 50 context, type, viewport, *context->x()->currentValue(),
49 *context->y()->currentValue(), *context->width()->currentValue(), 51 *context->y()->currentValue(), *context->width()->currentValue(),
50 *context->height()->currentValue()); 52 *context->height()->currentValue());
51 } 53 }
52 54
53 static FloatRect resolveRectangle(const SVGElement*, 55 static FloatRect resolveRectangle(const SVGElement*,
54 SVGUnitTypes::SVGUnitType, 56 SVGUnitTypes::SVGUnitType,
55 const FloatRect& viewport, 57 const FloatRect& viewport,
56 const SVGLength& x, 58 const SVGLength& x,
57 const SVGLength& y, 59 const SVGLength& y,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 95
94 float convertValueFromUserUnitsToCHS(float value) const; 96 float convertValueFromUserUnitsToCHS(float value) const;
95 float convertValueFromCHSToUserUnits(float value) const; 97 float convertValueFromCHSToUserUnits(float value) const;
96 98
97 Member<const SVGElement> m_context; 99 Member<const SVGElement> m_context;
98 }; 100 };
99 101
100 } // namespace blink 102 } // namespace blink
101 103
102 #endif // SVGLengthContext_h 104 #endif // SVGLengthContext_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGFEBlendElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGViewSpec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698