| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 void didSetSurfaceSize() override; | 129 void didSetSurfaceSize() override; |
| 130 | 130 |
| 131 void restoreCanvasMatrixClipStack(SkCanvas*) const override; | 131 void restoreCanvasMatrixClipStack(SkCanvas*) const override; |
| 132 | 132 |
| 133 // TaskObserver implementation | 133 // TaskObserver implementation |
| 134 void didProcessTask() override; | 134 void didProcessTask() override; |
| 135 void willProcessTask() override { } | 135 void willProcessTask() override { } |
| 136 | 136 |
| 137 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS
tyle) override; | 137 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS
tyle) override; |
| 138 std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoi
nt& location) override; | 138 std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoi
nt& location) override; |
| 139 String getIdFromControl(const Element*) override; |
| 139 | 140 |
| 140 // SVGResourceClient implementation | 141 // SVGResourceClient implementation |
| 141 void filterNeedsInvalidation() override; | 142 void filterNeedsInvalidation() override; |
| 142 | 143 |
| 143 // BaseRenderingContext2D implementation | 144 // BaseRenderingContext2D implementation |
| 144 bool originClean() const final; | 145 bool originClean() const final; |
| 145 void setOriginTainted() final; | 146 void setOriginTainted() final; |
| 146 bool wouldTaintOrigin(CanvasImageSource* source) final { return CanvasRender
ingContext::wouldTaintOrigin(source); } | 147 bool wouldTaintOrigin(CanvasImageSource* source) final { return CanvasRender
ingContext::wouldTaintOrigin(source); } |
| 147 | 148 |
| 148 int width() const final; | 149 int width() const final; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; | 218 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; |
| 218 bool m_pruneLocalFontCacheScheduled; | 219 bool m_pruneLocalFontCacheScheduled; |
| 219 ListHashSet<String> m_fontLRUList; | 220 ListHashSet<String> m_fontLRUList; |
| 220 }; | 221 }; |
| 221 | 222 |
| 222 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 223 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 223 | 224 |
| 224 } // namespace blink | 225 } // namespace blink |
| 225 | 226 |
| 226 #endif // CanvasRenderingContext2D_h | 227 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |