| 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 Intel Corporation. All rights reserved. | 8 * Copyright (C) 2012 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 15 matching lines...) Expand all Loading... |
| 26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 27 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 27 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 28 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 28 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 31 */ | 31 */ |
| 32 | 32 |
| 33 #include "config.h" | 33 #include "config.h" |
| 34 #include "CanvasRenderingContext2D.h" | 34 #include "CanvasRenderingContext2D.h" |
| 35 | 35 |
| 36 #include "AffineTransform.h" | |
| 37 #include "CSSFontSelector.h" | 36 #include "CSSFontSelector.h" |
| 38 #include "CSSParser.h" | 37 #include "CSSParser.h" |
| 39 #include "CSSPropertyNames.h" | 38 #include "CSSPropertyNames.h" |
| 40 #include "CachedImage.h" | 39 #include "CachedImage.h" |
| 41 #include "CanvasGradient.h" | 40 #include "CanvasGradient.h" |
| 42 #include "CanvasPattern.h" | 41 #include "CanvasPattern.h" |
| 43 #include "CanvasStyle.h" | 42 #include "CanvasStyle.h" |
| 44 #include "Console.h" | 43 #include "Console.h" |
| 45 #include "DOMPath.h" | 44 #include "DOMPath.h" |
| 46 #include "ExceptionCode.h" | 45 #include "ExceptionCode.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 59 #include "SecurityOrigin.h" | 58 #include "SecurityOrigin.h" |
| 60 #include "Settings.h" | 59 #include "Settings.h" |
| 61 #include "StylePropertySet.h" | 60 #include "StylePropertySet.h" |
| 62 #include "StyleResolver.h" | 61 #include "StyleResolver.h" |
| 63 #include "TextMetrics.h" | 62 #include "TextMetrics.h" |
| 64 #include "core/platform/graphics/FloatQuad.h" | 63 #include "core/platform/graphics/FloatQuad.h" |
| 65 #include "core/platform/graphics/FontCache.h" | 64 #include "core/platform/graphics/FontCache.h" |
| 66 #include "core/platform/graphics/GraphicsContext.h" | 65 #include "core/platform/graphics/GraphicsContext.h" |
| 67 #include "core/platform/graphics/StrokeStyleApplier.h" | 66 #include "core/platform/graphics/StrokeStyleApplier.h" |
| 68 #include "core/platform/graphics/TextRun.h" | 67 #include "core/platform/graphics/TextRun.h" |
| 68 #include "core/platform/graphics/transforms/AffineTransform.h" |
| 69 | 69 |
| 70 #include <wtf/CheckedArithmetic.h> | 70 #include <wtf/CheckedArithmetic.h> |
| 71 #include <wtf/MathExtras.h> | 71 #include <wtf/MathExtras.h> |
| 72 #include <wtf/OwnPtr.h> | 72 #include <wtf/OwnPtr.h> |
| 73 #include <wtf/text/StringBuilder.h> | 73 #include <wtf/text/StringBuilder.h> |
| 74 #include <wtf/Uint8ClampedArray.h> | 74 #include <wtf/Uint8ClampedArray.h> |
| 75 #include <wtf/UnusedParam.h> | 75 #include <wtf/UnusedParam.h> |
| 76 | 76 |
| 77 using namespace std; | 77 using namespace std; |
| 78 | 78 |
| (...skipping 2166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2245 return; | 2245 return; |
| 2246 | 2246 |
| 2247 realizeSaves(); | 2247 realizeSaves(); |
| 2248 modifiableState().m_imageSmoothingEnabled = enabled; | 2248 modifiableState().m_imageSmoothingEnabled = enabled; |
| 2249 GraphicsContext* c = drawingContext(); | 2249 GraphicsContext* c = drawingContext(); |
| 2250 if (c) | 2250 if (c) |
| 2251 c->setImageInterpolationQuality(enabled ? DefaultInterpolationQuality :
InterpolationNone); | 2251 c->setImageInterpolationQuality(enabled ? DefaultInterpolationQuality :
InterpolationNone); |
| 2252 } | 2252 } |
| 2253 | 2253 |
| 2254 } // namespace WebCore | 2254 } // namespace WebCore |
| OLD | NEW |