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

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/CanvasPathMethods.cpp

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. 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) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) 4 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies)
5 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
7 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 7 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
8 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 8 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
9 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved.
10 * Copyright (C) 2012, 2013 Adobe Systems Incorporated. All rights reserved. 10 * Copyright (C) 2012, 2013 Adobe Systems Incorporated. All rights reserved.
(...skipping 21 matching lines...) Expand all
32 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE. 33 * SUCH DAMAGE.
34 */ 34 */
35 35
36 #include "modules/canvas2d/CanvasPathMethods.h" 36 #include "modules/canvas2d/CanvasPathMethods.h"
37 37
38 #include "bindings/core/v8/ExceptionState.h" 38 #include "bindings/core/v8/ExceptionState.h"
39 #include "core/dom/ExceptionCode.h" 39 #include "core/dom/ExceptionCode.h"
40 #include "platform/geometry/FloatRect.h" 40 #include "platform/geometry/FloatRect.h"
41 #include "platform/transforms/AffineTransform.h" 41 #include "platform/transforms/AffineTransform.h"
42 #include "wtf/MathExtras.h" 42 #include "platform/wtf/MathExtras.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 void CanvasPathMethods::closePath() { 46 void CanvasPathMethods::closePath() {
47 if (path_.IsEmpty()) 47 if (path_.IsEmpty())
48 return; 48 return;
49 49
50 FloatRect bound_rect = path_.BoundingRect(); 50 FloatRect bound_rect = path_.BoundingRect();
51 if (bound_rect.Width() || bound_rect.Height()) 51 if (bound_rect.Width() || bound_rect.Height())
52 path_.CloseSubpath(); 52 path_.CloseSubpath();
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 if (!IsTransformInvertible()) 380 if (!IsTransformInvertible())
381 return; 381 return;
382 382
383 if (!std::isfinite(x) || !std::isfinite(y) || !std::isfinite(width) || 383 if (!std::isfinite(x) || !std::isfinite(y) || !std::isfinite(width) ||
384 !std::isfinite(height)) 384 !std::isfinite(height))
385 return; 385 return;
386 386
387 path_.AddRect(FloatRect(x, y, width, height)); 387 path_.AddRect(FloatRect(x, y, width, height));
388 } 388 }
389 } // namespace blink 389 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698