OLD | NEW |
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) 2013 Adobe Systems Incorporated. All rights reserved. | 9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
10 * | 10 * |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 #include "wtf/MathExtras.h" | 70 #include "wtf/MathExtras.h" |
71 #include "wtf/OwnPtr.h" | 71 #include "wtf/OwnPtr.h" |
72 #include "wtf/Uint8ClampedArray.h" | 72 #include "wtf/Uint8ClampedArray.h" |
73 #include "wtf/text/StringBuilder.h" | 73 #include "wtf/text/StringBuilder.h" |
74 | 74 |
75 using namespace std; | 75 using namespace std; |
76 | 76 |
77 namespace WebCore { | 77 namespace WebCore { |
78 | 78 |
79 static const int defaultFontSize = 10; | 79 static const int defaultFontSize = 10; |
80 static const char* const defaultFontFamily = "sans-serif"; | 80 static const char defaultFontFamily[] = "sans-serif"; |
81 static const char* const defaultFont = "10px sans-serif"; | 81 static const char defaultFont[] = "10px sans-serif"; |
82 | 82 |
83 CanvasRenderingContext2D::CanvasRenderingContext2D(HTMLCanvasElement* canvas, co
nst Canvas2DContextAttributes* attrs, bool usesCSSCompatibilityParseMode) | 83 CanvasRenderingContext2D::CanvasRenderingContext2D(HTMLCanvasElement* canvas, co
nst Canvas2DContextAttributes* attrs, bool usesCSSCompatibilityParseMode) |
84 : CanvasRenderingContext(canvas) | 84 : CanvasRenderingContext(canvas) |
85 , m_stateStack(1) | 85 , m_stateStack(1) |
86 , m_unrealizedSaveCount(0) | 86 , m_unrealizedSaveCount(0) |
87 , m_usesCSSCompatibilityParseMode(usesCSSCompatibilityParseMode) | 87 , m_usesCSSCompatibilityParseMode(usesCSSCompatibilityParseMode) |
88 , m_hasAlpha(!attrs || attrs->alpha()) | 88 , m_hasAlpha(!attrs || attrs->alpha()) |
89 { | 89 { |
90 ScriptWrappable::init(this); | 90 ScriptWrappable::init(this); |
91 } | 91 } |
(...skipping 2337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2429 const int focusRingWidth = 5; | 2429 const int focusRingWidth = 5; |
2430 const int focusRingOutline = 0; | 2430 const int focusRingOutline = 0; |
2431 c->drawFocusRing(path, focusRingWidth, focusRingOutline, focusRingColor); | 2431 c->drawFocusRing(path, focusRingWidth, focusRingOutline, focusRingColor); |
2432 | 2432 |
2433 c->restore(); | 2433 c->restore(); |
2434 | 2434 |
2435 didDraw(dirtyRect); | 2435 didDraw(dirtyRect); |
2436 } | 2436 } |
2437 | 2437 |
2438 } // namespace WebCore | 2438 } // namespace WebCore |
OLD | NEW |