|
Lines 322-328
void CanvasRenderingContext2DBase::FontProxy::fontsNeedUpdate(FontSelector& sele
a/Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp_sec1
|
| 322 |
update(selector); |
322 |
update(selector); |
| 323 |
} |
323 |
} |
| 324 |
|
324 |
|
| 325 |
inline void CanvasRenderingContext2DBase::FontProxy::initialize(FontSelector& fontSelector, const RenderStyle& newStyle) |
325 |
void CanvasRenderingContext2DBase::FontProxy::initialize(FontSelector& fontSelector, const RenderStyle& newStyle) |
| 326 |
{ |
326 |
{ |
| 327 |
// Beware! m_font.fontSelector() might not point to document.fontSelector()! |
327 |
// Beware! m_font.fontSelector() might not point to document.fontSelector()! |
| 328 |
ASSERT(newStyle.fontCascade().fontSelector() == &fontSelector); |
328 |
ASSERT(newStyle.fontCascade().fontSelector() == &fontSelector); |
|
Lines 334-355
inline void CanvasRenderingContext2DBase::FontProxy::initialize(FontSelector& fo
a/Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp_sec2
|
| 334 |
m_font.fontSelector()->registerForInvalidationCallbacks(*this); |
334 |
m_font.fontSelector()->registerForInvalidationCallbacks(*this); |
| 335 |
} |
335 |
} |
| 336 |
|
336 |
|
| 337 |
inline const FontMetrics& CanvasRenderingContext2DBase::FontProxy::fontMetrics() const |
337 |
const FontMetrics& CanvasRenderingContext2DBase::FontProxy::fontMetrics() const |
| 338 |
{ |
338 |
{ |
| 339 |
return m_font.fontMetrics(); |
339 |
return m_font.fontMetrics(); |
| 340 |
} |
340 |
} |
| 341 |
|
341 |
|
| 342 |
inline const FontCascadeDescription& CanvasRenderingContext2DBase::FontProxy::fontDescription() const |
342 |
const FontCascadeDescription& CanvasRenderingContext2DBase::FontProxy::fontDescription() const |
| 343 |
{ |
343 |
{ |
| 344 |
return m_font.fontDescription(); |
344 |
return m_font.fontDescription(); |
| 345 |
} |
345 |
} |
| 346 |
|
346 |
|
| 347 |
inline float CanvasRenderingContext2DBase::FontProxy::width(const TextRun& textRun, GlyphOverflow* overflow) const |
347 |
float CanvasRenderingContext2DBase::FontProxy::width(const TextRun& textRun, GlyphOverflow* overflow) const |
| 348 |
{ |
348 |
{ |
| 349 |
return m_font.width(textRun, 0, overflow); |
349 |
return m_font.width(textRun, 0, overflow); |
| 350 |
} |
350 |
} |
| 351 |
|
351 |
|
| 352 |
inline void CanvasRenderingContext2DBase::FontProxy::drawBidiText(GraphicsContext& context, const TextRun& run, const FloatPoint& point, FontCascade::CustomFontNotReadyAction action) const |
352 |
void CanvasRenderingContext2DBase::FontProxy::drawBidiText(GraphicsContext& context, const TextRun& run, const FloatPoint& point, FontCascade::CustomFontNotReadyAction action) const |
| 353 |
{ |
353 |
{ |
| 354 |
context.drawBidiText(m_font, run, point, action); |
354 |
context.drawBidiText(m_font, run, point, action); |
| 355 |
} |
355 |
} |
|
Lines 1166-1179
void CanvasRenderingContext2DBase::clipInternal(const Path& path, CanvasFillRule
a/Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp_sec3
|
| 1166 |
c->canvasClip(path, toWindRule(windingRule)); |
1166 |
c->canvasClip(path, toWindRule(windingRule)); |
| 1167 |
} |
1167 |
} |
| 1168 |
|
1168 |
|
| 1169 |
inline void CanvasRenderingContext2DBase::beginCompositeLayer() |
1169 |
void CanvasRenderingContext2DBase::beginCompositeLayer() |
| 1170 |
{ |
1170 |
{ |
| 1171 |
#if !USE(CAIRO) |
1171 |
#if !USE(CAIRO) |
| 1172 |
drawingContext()->beginTransparencyLayer(1); |
1172 |
drawingContext()->beginTransparencyLayer(1); |
| 1173 |
#endif |
1173 |
#endif |
| 1174 |
} |
1174 |
} |
| 1175 |
|
1175 |
|
| 1176 |
inline void CanvasRenderingContext2DBase::endCompositeLayer() |
1176 |
void CanvasRenderingContext2DBase::endCompositeLayer() |
| 1177 |
{ |
1177 |
{ |
| 1178 |
#if !USE(CAIRO) |
1178 |
#if !USE(CAIRO) |
| 1179 |
drawingContext()->endTransparencyLayer(); |
1179 |
drawingContext()->endTransparencyLayer(); |