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

Side by Side Diff: Source/platform/graphics/Path.cpp

Issue 1185383002: [SVG] Re-enable experimental PathOpsSVGClipping support (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: expectations Created 5 years, 6 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
« no previous file with comments | « Source/platform/graphics/Path.h ('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) 2003, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved.
3 * 2006 Rob Buis <buis@kde.org> 3 * 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2013 Google Inc. All rights reserved. 5 * Copyright (C) 2013 Google Inc. All rights reserved.
6 * Copyright (C) 2013 Intel Corporation. All rights reserved. 6 * Copyright (C) 2013 Intel Corporation. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 Path::~Path() 54 Path::~Path()
55 { 55 {
56 } 56 }
57 57
58 Path& Path::operator=(const Path& other) 58 Path& Path::operator=(const Path& other)
59 { 59 {
60 m_path = SkPath(other.m_path); 60 m_path = SkPath(other.m_path);
61 return *this; 61 return *this;
62 } 62 }
63 63
64 Path& Path::operator=(const SkPath& other)
65 {
66 m_path = other;
67 return *this;
68 }
69
64 bool Path::operator==(const Path& other) const 70 bool Path::operator==(const Path& other) const
65 { 71 {
66 return m_path == other.m_path; 72 return m_path == other.m_path;
67 } 73 }
68 74
69 bool Path::contains(const FloatPoint& point, WindRule rule) const 75 bool Path::contains(const FloatPoint& point, WindRule rule) const
70 { 76 {
71 return SkPathContainsPoint(m_path, point, static_cast<SkPath::FillType>(rule )); 77 return SkPathContainsPoint(m_path, point, static_cast<SkPath::FillType>(rule ));
72 } 78 }
73 79
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 498
493 #if ENABLE(ASSERT) 499 #if ENABLE(ASSERT)
494 bool ellipseIsRenderable(float startAngle, float endAngle) 500 bool ellipseIsRenderable(float startAngle, float endAngle)
495 { 501 {
496 return (std::abs(endAngle - startAngle) < twoPiFloat) 502 return (std::abs(endAngle - startAngle) < twoPiFloat)
497 || WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat); 503 || WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat);
498 } 504 }
499 #endif 505 #endif
500 506
501 } // namespace blink 507 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/Path.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698