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

Unified Diff: third_party/WebKit/Source/core/layout/ImageQualityController.cpp

Issue 2391893004: Reformat comments in core/layout up until LayoutBox (Closed)
Patch Set: Rebase w/HEAD (again) 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/layout/ImageQualityController.cpp
diff --git a/third_party/WebKit/Source/core/layout/ImageQualityController.cpp b/third_party/WebKit/Source/core/layout/ImageQualityController.cpp
index 9b94c5b3dce38332e39b1a298833c80002b59db7..68c9d92ddc32333239d9efe514fefd2e57a9bc0e 100644
--- a/third_party/WebKit/Source/core/layout/ImageQualityController.cpp
+++ b/third_party/WebKit/Source/core/layout/ImageQualityController.cpp
@@ -91,7 +91,8 @@ InterpolationQuality ImageQualityController::chooseInterpolationQuality(
}
ImageQualityController::~ImageQualityController() {
- // This will catch users of ImageQualityController that forget to call cleanUp.
+ // This will catch users of ImageQualityController that forget to call
+ // cleanUp.
ASSERT(!gImageQualityController || gImageQualityController->isEmpty());
}
@@ -167,8 +168,8 @@ bool ImageQualityController::shouldPaintAtLowQuality(
const void* layer,
const LayoutSize& layoutSize,
double lastFrameTimeMonotonic) {
- // If the image is not a bitmap image, then none of this is relevant and we just paint at high
- // quality.
+ // If the image is not a bitmap image, then none of this is relevant and we
+ // just paint at high quality.
if (!image || !image->isBitmapImage())
return false;
@@ -203,12 +204,14 @@ bool ImageQualityController::shouldPaintAtLowQuality(
}
if (layoutSize == image->size()) {
- // There is no scale in effect. If we had a scale in effect before, we can just remove this object from the list.
+ // There is no scale in effect. If we had a scale in effect before, we can
+ // just remove this object from the list.
removeLayer(object, innerMap, layer);
return false;
}
- // If an animated resize is active for this object, paint in low quality and kick the timer ahead.
+ // If an animated resize is active for this object, paint in low quality and
+ // kick the timer ahead.
if (objectIsResizing) {
bool sizesChanged = oldSize != layoutSize;
set(object, innerMap, layer, layoutSize, sizesChanged);

Powered by Google App Engine
This is Rietveld 408576698