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

Unified Diff: Source/core/platform/graphics/FloatPoint.cpp

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/platform/graphics/Extensions3D.h ('k') | Source/core/platform/graphics/FloatPoint3D.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/FloatPoint.cpp
diff --git a/Source/core/platform/graphics/FloatPoint.cpp b/Source/core/platform/graphics/FloatPoint.cpp
index 3c1e681fec7be629c8e9807d79b74151b208575f..d92d6abfdd05244e255b358fee57dfa954cda559 100644
--- a/Source/core/platform/graphics/FloatPoint.cpp
+++ b/Source/core/platform/graphics/FloatPoint.cpp
@@ -21,7 +21,7 @@
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
@@ -116,7 +116,7 @@ float findSlope(const FloatPoint& p1, const FloatPoint& p2, float& c)
return slope;
}
-bool findIntersection(const FloatPoint& p1, const FloatPoint& p2, const FloatPoint& d1, const FloatPoint& d2, FloatPoint& intersection)
+bool findIntersection(const FloatPoint& p1, const FloatPoint& p2, const FloatPoint& d1, const FloatPoint& d2, FloatPoint& intersection)
{
float pOffset = 0;
float pSlope = findSlope(p1, p2, pOffset);
@@ -126,7 +126,7 @@ bool findIntersection(const FloatPoint& p1, const FloatPoint& p2, const FloatPoi
if (dSlope == pSlope)
return false;
-
+
if (pSlope == std::numeric_limits<float>::infinity()) {
intersection.setX(p1.x());
intersection.setY(dSlope * intersection.x() + dOffset);
@@ -137,7 +137,7 @@ bool findIntersection(const FloatPoint& p1, const FloatPoint& p2, const FloatPoi
intersection.setY(pSlope * intersection.x() + pOffset);
return true;
}
-
+
// Find x at intersection, where ys overlap; x = (c' - c) / (m - m')
intersection.setX((dOffset - pOffset) / (pSlope - dSlope));
intersection.setY(pSlope * intersection.x() + pOffset);
« no previous file with comments | « Source/core/platform/graphics/Extensions3D.h ('k') | Source/core/platform/graphics/FloatPoint3D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698