| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv
ed. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 void loseContext(LostContextMode) override; | 126 void loseContext(LostContextMode) override; |
| 127 void didSetSurfaceSize() override; | 127 void didSetSurfaceSize() override; |
| 128 | 128 |
| 129 void restoreCanvasMatrixClipStack(SkCanvas*) const override; | 129 void restoreCanvasMatrixClipStack(SkCanvas*) const override; |
| 130 | 130 |
| 131 // TaskObserver implementation | 131 // TaskObserver implementation |
| 132 void didProcessTask() override; | 132 void didProcessTask() override; |
| 133 void willProcessTask() override { } | 133 void willProcessTask() override { } |
| 134 | 134 |
| 135 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS
tyle) override; | 135 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS
tyle) override; |
| 136 std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoi
nt& location) override; |
| 136 | 137 |
| 137 // SVGResourceClient implementation | 138 // SVGResourceClient implementation |
| 138 void filterNeedsInvalidation() override; | 139 void filterNeedsInvalidation() override; |
| 139 | 140 |
| 140 // BaseRenderingContext2D implementation | 141 // BaseRenderingContext2D implementation |
| 141 bool originClean() const final; | 142 bool originClean() const final; |
| 142 void setOriginTainted() final; | 143 void setOriginTainted() final; |
| 143 bool wouldTaintOrigin(CanvasImageSource* source) final { return CanvasRender
ingContext::wouldTaintOrigin(source); } | 144 bool wouldTaintOrigin(CanvasImageSource* source) final { return CanvasRender
ingContext::wouldTaintOrigin(source); } |
| 144 | 145 |
| 145 int width() const final; | 146 int width() const final; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; | 215 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; |
| 215 bool m_pruneLocalFontCacheScheduled; | 216 bool m_pruneLocalFontCacheScheduled; |
| 216 ListHashSet<String> m_fontLRUList; | 217 ListHashSet<String> m_fontLRUList; |
| 217 }; | 218 }; |
| 218 | 219 |
| 219 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 220 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 220 | 221 |
| 221 } // namespace blink | 222 } // namespace blink |
| 222 | 223 |
| 223 #endif // CanvasRenderingContext2D_h | 224 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |