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

Side by Side Diff: Source/core/layout/svg/LayoutSVGEllipse.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google, Inc. 2 * Copyright (C) 2012 Google, Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // This works by checking if the point satisfies the ellipse equation. 122 // This works by checking if the point satisfies the ellipse equation.
123 // (x/rX)^2 + (y/rY)^2 <= 1 123 // (x/rX)^2 + (y/rY)^2 <= 1
124 const float xrX = center.x() / m_radii.width(); 124 const float xrX = center.x() / m_radii.width();
125 const float yrY = center.y() / m_radii.height(); 125 const float yrY = center.y() / m_radii.height();
126 return xrX * xrX + yrY * yrY <= 1.0; 126 return xrX * xrX + yrY * yrY <= 1.0;
127 } 127 }
128 128
129 bool LayoutSVGEllipse::hasContinuousStroke() const 129 bool LayoutSVGEllipse::hasContinuousStroke() const
130 { 130 {
131 const SVGLayoutStyle& svgStyle = style()->svgStyle(); 131 const SVGComputedStyle& svgStyle = style()->svgStyle();
132 return svgStyle.strokeDashArray()->isEmpty(); 132 return svgStyle.strokeDashArray()->isEmpty();
133 } 133 }
134 134
135 } 135 }
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGContainer.cpp ('k') | Source/core/layout/svg/LayoutSVGForeignObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698