| Index: third_party/WebKit/Source/core/paint/ImagePainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/ImagePainter.cpp b/third_party/WebKit/Source/core/paint/ImagePainter.cpp
|
| index 40efabde0e054ceb14604be1385d7e6132818d06..e802681814f31e2d851e2abf00a677e98541fbb2 100644
|
| --- a/third_party/WebKit/Source/core/paint/ImagePainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/ImagePainter.cpp
|
| @@ -46,8 +46,9 @@ void ImagePainter::paintAreaElementFocusRing(const PaintInfo& paintInfo,
|
| if (areaElement.imageElement() != m_layoutImage.node())
|
| return;
|
|
|
| - // Even if the theme handles focus ring drawing for entire elements, it won't do it for
|
| - // an area within an image, so we don't call LayoutTheme::themeDrawsFocusRing here.
|
| + // Even if the theme handles focus ring drawing for entire elements, it won't
|
| + // do it for an area within an image, so we don't call
|
| + // LayoutTheme::themeDrawsFocusRing here.
|
|
|
| const ComputedStyle& areaElementStyle = *areaElement.ensureComputedStyle();
|
| int outlineWidth = areaElementStyle.outlineWidth();
|
| @@ -132,7 +133,8 @@ void ImagePainter::paintIntoRect(GraphicsContext& context,
|
| const LayoutRect& contentRect) {
|
| if (!m_layoutImage.imageResource()->hasImage() ||
|
| m_layoutImage.imageResource()->errorOccurred())
|
| - return; // FIXME: should we just ASSERT these conditions? (audit all callers).
|
| + return; // FIXME: should we just ASSERT these conditions? (audit all
|
| + // callers).
|
|
|
| IntRect pixelSnappedDestRect = pixelSnappedIntRect(destRect);
|
| if (pixelSnappedDestRect.isEmpty())
|
| @@ -143,14 +145,16 @@ void ImagePainter::paintIntoRect(GraphicsContext& context,
|
| if (!image || image->isNull())
|
| return;
|
|
|
| - // FIXME: why is interpolation quality selection not included in the Instrumentation reported cost of drawing an image?
|
| + // FIXME: why is interpolation quality selection not included in the
|
| + // Instrumentation reported cost of drawing an image?
|
| InterpolationQuality interpolationQuality =
|
| BoxPainter::chooseInterpolationQuality(
|
| m_layoutImage, image.get(), image.get(),
|
| LayoutSize(pixelSnappedDestRect.size()));
|
|
|
| FloatRect srcRect = image->rect();
|
| - // If the content rect requires clipping, adjust |srcRect| and |pixelSnappedDestRect| over using a clip.
|
| + // If the content rect requires clipping, adjust |srcRect| and
|
| + // |pixelSnappedDestRect| over using a clip.
|
| if (!contentRect.contains(destRect)) {
|
| IntRect pixelSnappedContentRect = pixelSnappedIntRect(contentRect);
|
| pixelSnappedContentRect.intersect(pixelSnappedDestRect);
|
|
|