Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(739)

Unified Diff: third_party/WebKit/Source/core/paint/ImagePainter.cpp

Issue 2392443009: reflow comments in core/paint (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « third_party/WebKit/Source/core/paint/ImagePainter.h ('k') | third_party/WebKit/Source/core/paint/InlineFlowBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698