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

Unified Diff: third_party/WebKit/Source/core/css/CSSImageSetValue.cpp

Issue 2392343005: Reflow comments in core/css (Closed)
Patch Set: Revert clang-format 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/css/CSSImageSetValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp b/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp
index beeb3cf8f375ba10ede0394571aa435c16e17c4b..4357df9a80159457e9a3028d6f717e2b8c4068c5 100644
--- a/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp
@@ -69,7 +69,8 @@ void CSSImageSetValue::fillImageSet() {
++i;
}
- // Sort the images so that they are stored in order from lowest resolution to highest.
+ // Sort the images so that they are stored in order from lowest resolution to
+ // highest.
std::sort(m_imagesInSet.begin(), m_imagesInSet.end(),
CSSImageSetValue::compareByScaleFactor);
}
@@ -103,9 +104,10 @@ StyleImage* CSSImageSetValue::cacheImage(
fillImageSet();
if (isCachePending(deviceScaleFactor)) {
- // FIXME: In the future, we want to take much more than deviceScaleFactor into acount here.
- // All forms of scale should be included: Page::pageScaleFactor(), LocalFrame::pageZoomFactor(),
- // and any CSS transforms. https://bugs.webkit.org/show_bug.cgi?id=81698
+ // FIXME: In the future, we want to take much more than deviceScaleFactor
+ // into acount here. All forms of scale should be included:
+ // Page::pageScaleFactor(), LocalFrame::pageZoomFactor(), and any CSS
+ // transforms. https://bugs.webkit.org/show_bug.cgi?id=81698
ImageWithScale image = bestImageForScaleFactor(deviceScaleFactor);
FetchRequest request(ResourceRequest(document.completeURL(image.imageURL)),
FetchInitiatorTypeNames::css);
@@ -145,7 +147,8 @@ String CSSImageSetValue::customCSSText() const {
ASSERT_WITH_SECURITY_IMPLICATION(i < length);
const CSSValue& scaleFactorValue = item(i);
result.append(scaleFactorValue.cssText());
- // FIXME: Eventually the scale factor should contain it's own unit http://wkb.ug/100120.
+ // FIXME: Eventually the scale factor should contain it's own unit
+ // http://wkb.ug/100120.
// For now 'x' is hard-coded in the parser, so we hard-code it here too.
result.append('x');
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSImageGeneratorValue.h ('k') | third_party/WebKit/Source/core/css/CSSImportRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698