| 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 17 matching lines...) Expand all Loading... |
| 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 "modules/canvas2d/CanvasRenderingContext2D.h" | 33 #include "modules/canvas2d/CanvasRenderingContext2D.h" |
| 34 | 34 |
| 35 #include "bindings/core/v8/ExceptionMessages.h" | 35 #include "bindings/core/v8/ExceptionMessages.h" |
| 36 #include "bindings/core/v8/ExceptionState.h" | 36 #include "bindings/core/v8/ExceptionState.h" |
| 37 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 37 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
| 38 #include "bindings/modules/v8/UnionTypesModules.h" |
| 38 #include "core/CSSPropertyNames.h" | 39 #include "core/CSSPropertyNames.h" |
| 39 #include "core/css/StylePropertySet.h" | 40 #include "core/css/StylePropertySet.h" |
| 40 #include "core/css/resolver/StyleResolver.h" | 41 #include "core/css/resolver/StyleResolver.h" |
| 41 #include "core/dom/AXObjectCache.h" | 42 #include "core/dom/AXObjectCache.h" |
| 42 #include "core/dom/StyleEngine.h" | 43 #include "core/dom/StyleEngine.h" |
| 43 #include "core/events/Event.h" | 44 #include "core/events/Event.h" |
| 44 #include "core/frame/Settings.h" | 45 #include "core/frame/Settings.h" |
| 45 #include "core/html/TextMetrics.h" | 46 #include "core/html/TextMetrics.h" |
| 46 #include "core/html/canvas/CanvasFontCache.h" | 47 #include "core/html/canvas/CanvasFontCache.h" |
| 47 #include "core/layout/LayoutBox.h" | 48 #include "core/layout/LayoutBox.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 , m_pruneLocalFontCacheScheduled(false) | 121 , m_pruneLocalFontCacheScheduled(false) |
| 121 { | 122 { |
| 122 if (document.settings() && document.settings()->antialiasedClips2dCanvasEnab
led()) | 123 if (document.settings() && document.settings()->antialiasedClips2dCanvasEnab
led()) |
| 123 m_clipAntialiasing = AntiAliased; | 124 m_clipAntialiasing = AntiAliased; |
| 124 setShouldAntialias(true); | 125 setShouldAntialias(true); |
| 125 #if ENABLE(OILPAN) | 126 #if ENABLE(OILPAN) |
| 126 ThreadState::current()->registerPreFinalizer(this); | 127 ThreadState::current()->registerPreFinalizer(this); |
| 127 #endif | 128 #endif |
| 128 } | 129 } |
| 129 | 130 |
| 131 void CanvasRenderingContext2D::setCanvasGetContextResult(RenderingContext& resul
t) |
| 132 { |
| 133 result.setCanvasRenderingContext2D(PassRefPtrWillBeRawPtr<CanvasRenderingCon
text2D>(this)); |
| 134 } |
| 135 |
| 130 void CanvasRenderingContext2D::unwindStateStack() | 136 void CanvasRenderingContext2D::unwindStateStack() |
| 131 { | 137 { |
| 132 if (size_t stackSize = m_stateStack.size()) { | 138 if (size_t stackSize = m_stateStack.size()) { |
| 133 if (SkCanvas* skCanvas = canvas()->existingDrawingCanvas()) { | 139 if (SkCanvas* skCanvas = canvas()->existingDrawingCanvas()) { |
| 134 while (--stackSize) | 140 while (--stackSize) |
| 135 skCanvas->restore(); | 141 skCanvas->restore(); |
| 136 } | 142 } |
| 137 } | 143 } |
| 138 } | 144 } |
| 139 | 145 |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1015 | 1021 |
| 1016 unsigned CanvasRenderingContext2D::hitRegionsCount() const | 1022 unsigned CanvasRenderingContext2D::hitRegionsCount() const |
| 1017 { | 1023 { |
| 1018 if (m_hitRegionManager) | 1024 if (m_hitRegionManager) |
| 1019 return m_hitRegionManager->getHitRegionsCount(); | 1025 return m_hitRegionManager->getHitRegionsCount(); |
| 1020 | 1026 |
| 1021 return 0; | 1027 return 0; |
| 1022 } | 1028 } |
| 1023 | 1029 |
| 1024 } // namespace blink | 1030 } // namespace blink |
| OLD | NEW |