| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 } | 78 } |
| 79 CanvasRenderingContext::ContextType getContextType() const override { re
turn CanvasRenderingContext::Context2d; } | 79 CanvasRenderingContext::ContextType getContextType() const override { re
turn CanvasRenderingContext::Context2d; } |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 ~CanvasRenderingContext2D() override; | 82 ~CanvasRenderingContext2D() override; |
| 83 | 83 |
| 84 void setCanvasGetContextResult(RenderingContext&) final; | 84 void setCanvasGetContextResult(RenderingContext&) final; |
| 85 | 85 |
| 86 bool isContextLost() const override; | 86 bool isContextLost() const override; |
| 87 | 87 |
| 88 bool shouldAntialias() const override; |
| 88 void setShouldAntialias(bool) override; | 89 void setShouldAntialias(bool) override; |
| 89 | 90 |
| 90 void scrollPathIntoView(); | 91 void scrollPathIntoView(); |
| 91 void scrollPathIntoView(Path2D*); | 92 void scrollPathIntoView(Path2D*); |
| 92 | 93 |
| 93 void clearRect(double x, double y, double width, double height) override; | 94 void clearRect(double x, double y, double width, double height) override; |
| 94 | 95 |
| 95 void reset() override; | 96 void reset() override; |
| 96 | 97 |
| 97 String font() const; | 98 String font() const; |
| (...skipping 119 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 |