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

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

Issue 1649003002: Use StylePath instead of (Path)StyleMotionPath (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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 | « third_party/WebKit/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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 void Path::clear() 268 void Path::clear()
269 { 269 {
270 m_path.reset(); 270 m_path.reset();
271 } 271 }
272 272
273 bool Path::isEmpty() const 273 bool Path::isEmpty() const
274 { 274 {
275 return m_path.isEmpty(); 275 return m_path.isEmpty();
276 } 276 }
277 277
278 bool Path::isClosed() const
279 {
280 return m_path.isLastContourClosed();
281 }
282
278 void Path::setIsVolatile(bool isVolatile) 283 void Path::setIsVolatile(bool isVolatile)
279 { 284 {
280 m_path.setIsVolatile(isVolatile); 285 m_path.setIsVolatile(isVolatile);
281 } 286 }
282 287
283 bool Path::hasCurrentPoint() const 288 bool Path::hasCurrentPoint() const
284 { 289 {
285 return m_path.getPoints(0, 0); 290 return m_path.getPoints(0, 0);
286 } 291 }
287 292
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 510
506 #if ENABLE(ASSERT) 511 #if ENABLE(ASSERT)
507 bool ellipseIsRenderable(float startAngle, float endAngle) 512 bool ellipseIsRenderable(float startAngle, float endAngle)
508 { 513 {
509 return (std::abs(endAngle - startAngle) < twoPiFloat) 514 return (std::abs(endAngle - startAngle) < twoPiFloat)
510 || WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat); 515 || WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat);
511 } 516 }
512 #endif 517 #endif
513 518
514 } // namespace blink 519 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Path.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698