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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 void drawFocusRing(const Path&); | 344 void drawFocusRing(const Path&); |
345 | 345 |
346 void addHitRegionInternal(const HitRegionOptions&, ExceptionState&); | 346 void addHitRegionInternal(const HitRegionOptions&, ExceptionState&); |
347 bool hasClip() { return state().m_hasClip; } | 347 bool hasClip() { return state().m_hasClip; } |
348 | 348 |
349 void validateStateStack(); | 349 void validateStateStack(); |
350 | 350 |
351 virtual bool is2d() const OVERRIDE { return true; } | 351 virtual bool is2d() const OVERRIDE { return true; } |
352 virtual bool isAccelerated() const OVERRIDE; | 352 virtual bool isAccelerated() const OVERRIDE; |
353 virtual bool hasAlpha() const OVERRIDE { return m_hasAlpha; } | 353 virtual bool hasAlpha() const OVERRIDE { return m_hasAlpha; } |
354 virtual void setIsHidden(bool) OVERRIDE; | |
355 | 354 |
356 virtual bool isTransformInvertible() const OVERRIDE { return state().m_inver
tibleCTM; } | 355 virtual bool isTransformInvertible() const OVERRIDE { return state().m_inver
tibleCTM; } |
357 | 356 |
358 virtual blink::WebLayer* platformLayer() const OVERRIDE; | 357 virtual blink::WebLayer* platformLayer() const OVERRIDE; |
359 | 358 |
360 WillBeHeapVector<OwnPtrWillBeMember<State> > m_stateStack; | 359 WillBeHeapVector<OwnPtrWillBeMember<State> > m_stateStack; |
361 OwnPtrWillBeMember<HitRegionManager> m_hitRegionManager; | 360 OwnPtrWillBeMember<HitRegionManager> m_hitRegionManager; |
362 bool m_usesCSSCompatibilityParseMode; | 361 bool m_usesCSSCompatibilityParseMode; |
363 bool m_hasAlpha; | 362 bool m_hasAlpha; |
364 bool m_isContextLost; | 363 bool m_isContextLost; |
365 bool m_contextRestorable; | 364 bool m_contextRestorable; |
366 Canvas2DContextStorage m_storageMode; | 365 Canvas2DContextStorage m_storageMode; |
367 MutableStylePropertyMap m_fetchedFonts; | 366 MutableStylePropertyMap m_fetchedFonts; |
368 unsigned m_tryRestoreContextAttemptCount; | 367 unsigned m_tryRestoreContextAttemptCount; |
369 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 368 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
370 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 369 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
371 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 370 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
372 }; | 371 }; |
373 | 372 |
374 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 373 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
375 | 374 |
376 } // namespace WebCore | 375 } // namespace WebCore |
377 | 376 |
378 #endif | 377 #endif |
OLD | NEW |