| OLD | NEW |
| 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 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 #include "core/platform/graphics/Path.h" | 30 #include "core/platform/graphics/Path.h" |
| 31 | 31 |
| 32 #include <math.h> | 32 #include <math.h> |
| 33 #include "SkPath.h" | 33 #include "SkPath.h" |
| 34 #include "core/platform/graphics/FloatPoint.h" | 34 #include "core/platform/graphics/FloatPoint.h" |
| 35 #include "core/platform/graphics/FloatRect.h" | 35 #include "core/platform/graphics/FloatRect.h" |
| 36 #include "core/platform/graphics/ImageBuffer.h" | 36 #include "core/platform/graphics/ImageBuffer.h" |
| 37 #include "core/platform/graphics/PathTraversalState.h" | 37 #include "core/platform/graphics/PathTraversalState.h" |
| 38 #include "core/platform/graphics/StrokeStyleApplier.h" | 38 #include "core/platform/graphics/StrokeStyleApplier.h" |
| 39 #include "core/platform/graphics/skia/PlatformContextSkia.h" |
| 39 #include "core/platform/graphics/skia/SkiaUtils.h" | 40 #include "core/platform/graphics/skia/SkiaUtils.h" |
| 40 #include "core/platform/graphics/transforms/AffineTransform.h" | 41 #include "core/platform/graphics/transforms/AffineTransform.h" |
| 41 #include <wtf/MathExtras.h> | 42 #include <wtf/MathExtras.h> |
| 42 | 43 |
| 43 namespace WebCore { | 44 namespace WebCore { |
| 44 | 45 |
| 45 static void pathLengthApplierFunction(void* info, const PathElement* element) | 46 static void pathLengthApplierFunction(void* info, const PathElement* element) |
| 46 { | 47 { |
| 47 PathTraversalState& traversalState = *static_cast<PathTraversalState*>(info)
; | 48 PathTraversalState& traversalState = *static_cast<PathTraversalState*>(info)
; |
| 48 if (traversalState.m_success) | 49 if (traversalState.m_success) |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 | 451 |
| 451 closeSubpath(); | 452 closeSubpath(); |
| 452 } | 453 } |
| 453 | 454 |
| 454 void Path::translate(const FloatSize& size) | 455 void Path::translate(const FloatSize& size) |
| 455 { | 456 { |
| 456 ensureSkPath()->offset(WebCoreFloatToSkScalar(size.width()), WebCoreFloatToS
kScalar(size.height())); | 457 ensureSkPath()->offset(WebCoreFloatToSkScalar(size.width()), WebCoreFloatToS
kScalar(size.height())); |
| 457 } | 458 } |
| 458 | 459 |
| 459 } | 460 } |
| OLD | NEW |