| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 | 298 |
| 299 void unwindStateStack(); | 299 void unwindStateStack(); |
| 300 void realizeSaves(); | 300 void realizeSaves(); |
| 301 | 301 |
| 302 void applyStrokePattern(); | 302 void applyStrokePattern(); |
| 303 void applyFillPattern(); | 303 void applyFillPattern(); |
| 304 | 304 |
| 305 void drawTextInternal(const String& text, float x, float y, bool fill, float
maxWidth = 0, bool useMaxWidth = false); | 305 void drawTextInternal(const String& text, float x, float y, bool fill, float
maxWidth = 0, bool useMaxWidth = false); |
| 306 | 306 |
| 307 const Font& accessFont(); | 307 const Font& accessFont(); |
| 308 int getFontBaseline(const FontMetrics&) const; |
| 308 | 309 |
| 309 void clearCanvas(); | 310 void clearCanvas(); |
| 310 bool rectContainsTransformedRect(const FloatRect&, const FloatRect&) const; | 311 bool rectContainsTransformedRect(const FloatRect&, const FloatRect&) const; |
| 311 | 312 |
| 312 void inflateStrokeRect(FloatRect&) const; | 313 void inflateStrokeRect(FloatRect&) const; |
| 313 | 314 |
| 314 template<class T> void fullCanvasCompositedFill(const T&); | 315 template<class T> void fullCanvasCompositedFill(const T&); |
| 315 template<class T> void fullCanvasCompositedDrawImage(T*, const FloatRect&, c
onst FloatRect&, CompositeOperator); | 316 template<class T> void fullCanvasCompositedDrawImage(T*, const FloatRect&, c
onst FloatRect&, CompositeOperator); |
| 316 | 317 |
| 317 bool focusRingCallIsValid(const Path&, Element*); | 318 bool focusRingCallIsValid(const Path&, Element*); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 330 bool m_usesCSSCompatibilityParseMode; | 331 bool m_usesCSSCompatibilityParseMode; |
| 331 bool m_hasAlpha; | 332 bool m_hasAlpha; |
| 332 MutableStylePropertyMap m_fetchedFonts; | 333 MutableStylePropertyMap m_fetchedFonts; |
| 333 }; | 334 }; |
| 334 | 335 |
| 335 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 336 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 336 | 337 |
| 337 } // namespace WebCore | 338 } // namespace WebCore |
| 338 | 339 |
| 339 #endif | 340 #endif |
| OLD | NEW |