|
Lines 469-506
void GraphicsContext::drawHighlightForText(const Font& font, const TextRun& run,
a/Source/WebCore/platform/graphics/GraphicsContext.cpp_sec1
|
| 469 |
fillRect(font.selectionRectForText(run, point, h, from, to), backgroundColor, colorSpace); |
469 |
fillRect(font.selectionRectForText(run, point, h, from, to), backgroundColor, colorSpace); |
| 470 |
} |
470 |
} |
| 471 |
|
471 |
|
| 472 |
void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const IntPoint& p, CompositeOperator op, RespectImageOrientationEnum shouldRespectImageOrientation) |
472 |
void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const IntPoint& p, CompositeOperator op, ImageOrientationEnum orientation, RespectImageOrientationEnum shouldRespectImageOrientation) |
| 473 |
{ |
473 |
{ |
| 474 |
if (!image) |
474 |
if (!image) |
| 475 |
return; |
475 |
return; |
| 476 |
drawImage(image, styleColorSpace, FloatRect(IntRect(p, image->size())), FloatRect(FloatPoint(), FloatSize(image->size())), op, shouldRespectImageOrientation); |
476 |
drawImage(image, styleColorSpace, FloatRect(IntRect(p, image->size())), FloatRect(FloatPoint(), FloatSize(image->size())), op, orientation, shouldRespectImageOrientation); |
| 477 |
} |
477 |
} |
| 478 |
|
478 |
|
| 479 |
void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const IntRect& r, CompositeOperator op, RespectImageOrientationEnum shouldRespectImageOrientation, bool useLowQualityScale) |
479 |
void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const IntRect& r, CompositeOperator op, ImageOrientationEnum orientation, RespectImageOrientationEnum shouldRespectImageOrientation, bool useLowQualityScale) |
| 480 |
{ |
480 |
{ |
| 481 |
if (!image) |
481 |
if (!image) |
| 482 |
return; |
482 |
return; |
| 483 |
drawImage(image, styleColorSpace, FloatRect(r), FloatRect(FloatPoint(), FloatSize(image->size())), op, shouldRespectImageOrientation, useLowQualityScale); |
483 |
drawImage(image, styleColorSpace, FloatRect(r), FloatRect(FloatPoint(), FloatSize(image->size())), op, orientation, shouldRespectImageOrientation, useLowQualityScale); |
| 484 |
} |
484 |
} |
| 485 |
|
485 |
|
| 486 |
void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const IntPoint& dest, const IntRect& srcRect, CompositeOperator op, RespectImageOrientationEnum shouldRespectImageOrientation) |
486 |
void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const IntPoint& dest, const IntRect& srcRect, CompositeOperator op, ImageOrientationEnum orientation, RespectImageOrientationEnum shouldRespectImageOrientation) |
| 487 |
{ |
487 |
{ |
| 488 |
drawImage(image, styleColorSpace, FloatRect(IntRect(dest, srcRect.size())), FloatRect(srcRect), op, shouldRespectImageOrientation); |
488 |
drawImage(image, styleColorSpace, FloatRect(IntRect(dest, srcRect.size())), FloatRect(srcRect), op, orientation, shouldRespectImageOrientation); |
| 489 |
} |
489 |
} |
| 490 |
|
490 |
|
| 491 |
void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const FloatRect& dest, const FloatRect& src, CompositeOperator op, RespectImageOrientationEnum shouldRespectImageOrientation, bool useLowQualityScale) |
491 |
void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const FloatRect& dest, const FloatRect& src, CompositeOperator op, ImageOrientationEnum orientation, RespectImageOrientationEnum shouldRespectImageOrientation, bool useLowQualityScale) |
| 492 |
{ |
492 |
{ |
| 493 |
drawImage(image, styleColorSpace, dest, src, op, BlendModeNormal, shouldRespectImageOrientation, useLowQualityScale); |
493 |
drawImage(image, styleColorSpace, dest, src, op, BlendModeNormal, orientation, shouldRespectImageOrientation, useLowQualityScale); |
| 494 |
} |
494 |
} |
| 495 |
|
495 |
|
| 496 |
void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const FloatRect& dest) |
496 |
void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const FloatRect& dest, ImageOrientationEnum) |
| 497 |
{ |
497 |
{ |
| 498 |
if (!image) |
498 |
if (!image) |
| 499 |
return; |
499 |
return; |
| 500 |
drawImage(image, styleColorSpace, dest, FloatRect(IntRect(IntPoint(), image->size()))); |
500 |
drawImage(image, styleColorSpace, dest, FloatRect(IntRect(IntPoint(), image->size()))); |
| 501 |
} |
501 |
} |
| 502 |
|
502 |
|
| 503 |
void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const FloatRect& dest, const FloatRect& src, CompositeOperator op, BlendMode blendMode, RespectImageOrientationEnum shouldRespectImageOrientation, bool useLowQualityScale) |
503 |
void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const FloatRect& dest, const FloatRect& src, CompositeOperator op, BlendMode blendMode, ImageOrientationEnum orientation, RespectImageOrientationEnum shouldRespectImageOrientation, bool useLowQualityScale) |
| 504 |
{ if (paintingDisabled() || !image) |
504 |
{ if (paintingDisabled() || !image) |
| 505 |
return; |
505 |
return; |
| 506 |
|
506 |
|
|
Lines 540-546
void GraphicsContext::drawTiledImage(Image* image, ColorSpace styleColorSpace, c
a/Source/WebCore/platform/graphics/GraphicsContext.cpp_sec2
|
| 540 |
|
540 |
|
| 541 |
if (hRule == Image::StretchTile && vRule == Image::StretchTile) { |
541 |
if (hRule == Image::StretchTile && vRule == Image::StretchTile) { |
| 542 |
// Just do a scale. |
542 |
// Just do a scale. |
| 543 |
drawImage(image, styleColorSpace, dest, srcRect, op); |
543 |
drawImage(image, styleColorSpace, dest, srcRect, op, DefaultImageOrientation, BlendModeNormal); |
| 544 |
return; |
544 |
return; |
| 545 |
} |
545 |
} |
| 546 |
|
546 |
|