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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 LineCap getLineCap() const { return state().m_lineCap; } | 219 LineCap getLineCap() const { return state().m_lineCap; } |
220 LineJoin getLineJoin() const { return state().m_lineJoin; } | 220 LineJoin getLineJoin() const { return state().m_lineJoin; } |
221 | 221 |
222 bool imageSmoothingEnabled() const; | 222 bool imageSmoothingEnabled() const; |
223 void setImageSmoothingEnabled(bool); | 223 void setImageSmoothingEnabled(bool); |
224 | 224 |
225 PassRefPtr<Canvas2DContextAttributes> getContextAttributes() const; | 225 PassRefPtr<Canvas2DContextAttributes> getContextAttributes() const; |
226 | 226 |
227 void drawFocusIfNeeded(Element*); | 227 void drawFocusIfNeeded(Element*); |
228 void drawFocusIfNeeded(Path2D*, Element*); | 228 void drawFocusIfNeeded(Path2D*, Element*); |
229 bool drawCustomFocusRing(Element*); | |
230 | 229 |
231 void loseContext(); | 230 void loseContext(); |
232 void restoreContext(); | 231 void restoreContext(); |
233 | 232 |
234 virtual void trace(Visitor*) OVERRIDE; | 233 virtual void trace(Visitor*) OVERRIDE; |
235 | 234 |
236 private: | 235 private: |
237 class State FINAL : public CSSFontSelectorClient { | 236 class State FINAL : public CSSFontSelectorClient { |
238 public: | 237 public: |
239 State(); | 238 State(); |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 352 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
354 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 353 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
355 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 354 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
356 }; | 355 }; |
357 | 356 |
358 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 357 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
359 | 358 |
360 } // namespace WebCore | 359 } // namespace WebCore |
361 | 360 |
362 #endif | 361 #endif |
OLD | NEW |