| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 void scrollPathIntoViewInternal(const Path&); | 215 void scrollPathIntoViewInternal(const Path&); |
| 216 | 216 |
| 217 void drawTextInternal(const String&, | 217 void drawTextInternal(const String&, |
| 218 double x, | 218 double x, |
| 219 double y, | 219 double y, |
| 220 CanvasRenderingContext2DState::PaintType, | 220 CanvasRenderingContext2DState::PaintType, |
| 221 double* maxWidth = nullptr); | 221 double* maxWidth = nullptr); |
| 222 | 222 |
| 223 const Font& accessFont(); | 223 const Font& accessFont(); |
| 224 int getFontBaseline(const FontMetrics&) const; | 224 float getFontBaseline(const FontMetrics&) const; |
| 225 | 225 |
| 226 void drawFocusIfNeededInternal(const Path&, Element*); | 226 void drawFocusIfNeededInternal(const Path&, Element*); |
| 227 bool focusRingCallIsValid(const Path&, Element*); | 227 bool focusRingCallIsValid(const Path&, Element*); |
| 228 void drawFocusRing(const Path&); | 228 void drawFocusRing(const Path&); |
| 229 void updateElementAccessibility(const Path&, Element*); | 229 void updateElementAccessibility(const Path&, Element*); |
| 230 | 230 |
| 231 CanvasRenderingContext::ContextType getContextType() const override { | 231 CanvasRenderingContext::ContextType getContextType() const override { |
| 232 return CanvasRenderingContext::Context2d; | 232 return CanvasRenderingContext::Context2d; |
| 233 } | 233 } |
| 234 bool is2d() const override { return true; } | 234 bool is2d() const override { return true; } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 257 | 257 |
| 258 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, | 258 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, |
| 259 CanvasRenderingContext, | 259 CanvasRenderingContext, |
| 260 context, | 260 context, |
| 261 context->is2d() && context->canvas(), | 261 context->is2d() && context->canvas(), |
| 262 context.is2d() && context.canvas()); | 262 context.is2d() && context.canvas()); |
| 263 | 263 |
| 264 } // namespace blink | 264 } // namespace blink |
| 265 | 265 |
| 266 #endif // CanvasRenderingContext2D_h | 266 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |