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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 void removeHitRegion(const String& id); | 210 void removeHitRegion(const String& id); |
211 void clearHitRegions(); | 211 void clearHitRegions(); |
212 HitRegion* hitRegionAtPoint(const LayoutPoint&); | 212 HitRegion* hitRegionAtPoint(const LayoutPoint&); |
213 unsigned hitRegionsCount() const; | 213 unsigned hitRegionsCount() const; |
214 | 214 |
215 void loseContext(); | 215 void loseContext(); |
216 void restoreContext(); | 216 void restoreContext(); |
217 | 217 |
218 void restoreCanvasMatrixClipStack(); | 218 void restoreCanvasMatrixClipStack(); |
219 | 219 |
220 virtual void trace(Visitor*) override; | 220 DECLARE_VIRTUAL_TRACE(); |
221 | 221 |
222 private: | 222 private: |
223 friend class CanvasRenderingContext2DAutoRestoreSkCanvas; | 223 friend class CanvasRenderingContext2DAutoRestoreSkCanvas; |
224 | 224 |
225 enum Direction { | 225 enum Direction { |
226 DirectionInherit, | 226 DirectionInherit, |
227 DirectionRTL, | 227 DirectionRTL, |
228 DirectionLTR | 228 DirectionLTR |
229 }; | 229 }; |
230 | 230 |
231 enum ClipListCopyMode { | 231 enum ClipListCopyMode { |
232 CopyClipList, | 232 CopyClipList, |
233 DontCopyClipList | 233 DontCopyClipList |
234 }; | 234 }; |
235 | 235 |
236 class State final : public CSSFontSelectorClient { | 236 class State final : public CSSFontSelectorClient { |
237 public: | 237 public: |
238 State(); | 238 State(); |
239 virtual ~State(); | 239 virtual ~State(); |
240 | 240 |
241 State(const State&, ClipListCopyMode = CopyClipList); | 241 State(const State&, ClipListCopyMode = CopyClipList); |
242 State& operator=(const State&); | 242 State& operator=(const State&); |
243 | 243 |
244 // CSSFontSelectorClient implementation | 244 // CSSFontSelectorClient implementation |
245 virtual void fontsNeedUpdate(CSSFontSelector*) override; | 245 virtual void fontsNeedUpdate(CSSFontSelector*) override; |
246 | 246 |
247 virtual void trace(Visitor*) override; | 247 DECLARE_VIRTUAL_TRACE(); |
248 | 248 |
249 unsigned m_unrealizedSaveCount; | 249 unsigned m_unrealizedSaveCount; |
250 | 250 |
251 String m_unparsedStrokeColor; | 251 String m_unparsedStrokeColor; |
252 String m_unparsedFillColor; | 252 String m_unparsedFillColor; |
253 RefPtrWillBeMember<CanvasStyle> m_strokeStyle; | 253 RefPtrWillBeMember<CanvasStyle> m_strokeStyle; |
254 RefPtrWillBeMember<CanvasStyle> m_fillStyle; | 254 RefPtrWillBeMember<CanvasStyle> m_fillStyle; |
255 | 255 |
256 float m_lineWidth; | 256 float m_lineWidth; |
257 LineCap m_lineCap; | 257 LineCap m_lineCap; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 375 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
376 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 376 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
377 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 377 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
378 }; | 378 }; |
379 | 379 |
380 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 380 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
381 | 381 |
382 } // namespace blink | 382 } // namespace blink |
383 | 383 |
384 #endif // CanvasRenderingContext2D_h | 384 #endif // CanvasRenderingContext2D_h |
OLD | NEW |