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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 CanvasRenderingContext2D(HTMLCanvasElement*, const Canvas2DContextAttributes
* attrs, bool usesCSSCompatibilityParseMode); | 276 CanvasRenderingContext2D(HTMLCanvasElement*, const Canvas2DContextAttributes
* attrs, bool usesCSSCompatibilityParseMode); |
277 | 277 |
278 State& modifiableState() { ASSERT(!m_unrealizedSaveCount); return m_stateSta
ck.last(); } | 278 State& modifiableState() { ASSERT(!m_unrealizedSaveCount); return m_stateSta
ck.last(); } |
279 const State& state() const { return m_stateStack.last(); } | 279 const State& state() const { return m_stateStack.last(); } |
280 | 280 |
281 void applyLineDash() const; | 281 void applyLineDash() const; |
282 void setShadow(const FloatSize& offset, float blur, RGBA32 color); | 282 void setShadow(const FloatSize& offset, float blur, RGBA32 color); |
283 void applyShadow(); | 283 void applyShadow(); |
284 bool shouldDrawShadows() const; | 284 bool shouldDrawShadows() const; |
285 | 285 |
286 void drawImageInternal(Image*, const FloatRect&, const FloatRect&, const Com
positeOperator&, const BlendMode&); | 286 template<class T> void drawImageInternal(T*, const FloatRect&, const FloatRe
ct&, const CompositeOperator&, const BlendMode&); |
287 void didDraw(const FloatRect&, unsigned options = CanvasDidDrawApplyAll); | 287 void didDraw(const FloatRect&, unsigned options = CanvasDidDrawApplyAll); |
288 void didDrawEntireCanvas(); | 288 void didDrawEntireCanvas(); |
289 | 289 |
290 GraphicsContext* drawingContext() const; | 290 GraphicsContext* drawingContext() const; |
291 | 291 |
292 void unwindStateStack(); | 292 void unwindStateStack(); |
293 void realizeSaves() | 293 void realizeSaves() |
294 { | 294 { |
295 if (m_unrealizedSaveCount) | 295 if (m_unrealizedSaveCount) |
296 realizeSavesLoop(); | 296 realizeSavesLoop(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 Vector<State, 1> m_stateStack; | 332 Vector<State, 1> m_stateStack; |
333 unsigned m_unrealizedSaveCount; | 333 unsigned m_unrealizedSaveCount; |
334 bool m_usesCSSCompatibilityParseMode; | 334 bool m_usesCSSCompatibilityParseMode; |
335 bool m_hasAlpha; | 335 bool m_hasAlpha; |
336 MutableStylePropertyMap m_cachedFonts; | 336 MutableStylePropertyMap m_cachedFonts; |
337 }; | 337 }; |
338 | 338 |
339 } // namespace WebCore | 339 } // namespace WebCore |
340 | 340 |
341 #endif | 341 #endif |
OLD | NEW |