| 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 template<class T> void fullCanvasCompositedDrawImage(T*, const FloatRect&, c
onst FloatRect&, CompositeOperator); | 331 template<class T> void fullCanvasCompositedDrawImage(T*, const FloatRect&, c
onst FloatRect&, CompositeOperator); |
| 332 | 332 |
| 333 void drawFocusIfNeededInternal(const Path&, Element*); | 333 void drawFocusIfNeededInternal(const Path&, Element*); |
| 334 bool focusRingCallIsValid(const Path&, Element*); | 334 bool focusRingCallIsValid(const Path&, Element*); |
| 335 void updateFocusRingAccessibility(const Path&, Element*); | 335 void updateFocusRingAccessibility(const Path&, Element*); |
| 336 void drawFocusRing(const Path&); | 336 void drawFocusRing(const Path&); |
| 337 | 337 |
| 338 virtual bool is2d() const OVERRIDE { return true; } | 338 virtual bool is2d() const OVERRIDE { return true; } |
| 339 virtual bool isAccelerated() const OVERRIDE; | 339 virtual bool isAccelerated() const OVERRIDE; |
| 340 virtual bool hasAlpha() const OVERRIDE { return m_hasAlpha; } | 340 virtual bool hasAlpha() const OVERRIDE { return m_hasAlpha; } |
| 341 virtual void setIsHidden(bool) OVERRIDE; |
| 341 | 342 |
| 342 virtual bool isTransformInvertible() const OVERRIDE { return state().m_inver
tibleCTM; } | 343 virtual bool isTransformInvertible() const OVERRIDE { return state().m_inver
tibleCTM; } |
| 343 | 344 |
| 344 virtual blink::WebLayer* platformLayer() const OVERRIDE; | 345 virtual blink::WebLayer* platformLayer() const OVERRIDE; |
| 345 | 346 |
| 346 // FIXME: Oilpan: Make this a vector of embedded State objects rather than p
ointers | 347 // FIXME: Oilpan: Make this a vector of embedded State objects rather than p
ointers |
| 347 // once we support having vectors with objects using a vtable in oilpan. | 348 // once we support having vectors with objects using a vtable in oilpan. |
| 348 WillBePersistentHeapVector<OwnPtrWillBeMember<State> > m_stateStack; | 349 WillBePersistentHeapVector<OwnPtrWillBeMember<State> > m_stateStack; |
| 349 bool m_usesCSSCompatibilityParseMode; | 350 bool m_usesCSSCompatibilityParseMode; |
| 350 bool m_hasAlpha; | 351 bool m_hasAlpha; |
| 351 bool m_isContextLost; | 352 bool m_isContextLost; |
| 352 bool m_contextRestorable; | 353 bool m_contextRestorable; |
| 353 Canvas2DContextStorage m_storageMode; | 354 Canvas2DContextStorage m_storageMode; |
| 354 MutableStylePropertyMap m_fetchedFonts; | 355 MutableStylePropertyMap m_fetchedFonts; |
| 355 unsigned m_tryRestoreContextAttemptCount; | 356 unsigned m_tryRestoreContextAttemptCount; |
| 356 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 357 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
| 357 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 358 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
| 358 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 359 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
| 359 }; | 360 }; |
| 360 | 361 |
| 361 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 362 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 362 | 363 |
| 363 } // namespace WebCore | 364 } // namespace WebCore |
| 364 | 365 |
| 365 #endif | 366 #endif |
| OLD | NEW |