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

Side by Side Diff: sky/engine/core/html/canvas/CanvasPathMethods.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 4 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
8 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. 8 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved.
9 * Copyright (C) 2012, 2013 Adobe Systems Incorporated. All rights reserved. 9 * Copyright (C) 2012, 2013 Adobe Systems Incorporated. All rights reserved.
10 * 10 *
(...skipping 14 matching lines...) Expand all
25 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 25 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
26 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 26 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 27 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
28 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
30 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 30 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
31 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE. 32 * SUCH DAMAGE.
33 */ 33 */
34 34
35 #include "config.h" 35 #include "sky/engine/config.h"
36 #include "core/html/canvas/CanvasPathMethods.h" 36 #include "sky/engine/core/html/canvas/CanvasPathMethods.h"
37 37
38 #include "bindings/core/v8/ExceptionState.h" 38 #include "sky/engine/bindings/core/v8/ExceptionState.h"
39 #include "core/dom/ExceptionCode.h" 39 #include "sky/engine/core/dom/ExceptionCode.h"
40 #include "platform/geometry/FloatRect.h" 40 #include "sky/engine/platform/geometry/FloatRect.h"
41 #include "platform/transforms/AffineTransform.h" 41 #include "sky/engine/platform/transforms/AffineTransform.h"
42 #include "wtf/MathExtras.h" 42 #include "sky/engine/wtf/MathExtras.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 void CanvasPathMethods::closePath() 46 void CanvasPathMethods::closePath()
47 { 47 {
48 if (m_path.isEmpty()) 48 if (m_path.isEmpty())
49 return; 49 return;
50 50
51 FloatRect boundRect = m_path.boundingRect(); 51 FloatRect boundRect = m_path.boundingRect();
52 if (boundRect.width() || boundRect.height()) 52 if (boundRect.width() || boundRect.height())
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 return; 312 return;
313 313
314 if (!width && !height) { 314 if (!width && !height) {
315 m_path.moveTo(FloatPoint(x, y)); 315 m_path.moveTo(FloatPoint(x, y));
316 return; 316 return;
317 } 317 }
318 318
319 m_path.addRect(FloatRect(x, y, width, height)); 319 m_path.addRect(FloatRect(x, y, width, height));
320 } 320 }
321 } 321 }
OLDNEW
« no previous file with comments | « sky/engine/core/html/canvas/CanvasPathMethods.h ('k') | sky/engine/core/html/canvas/CanvasPattern.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698