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

Unified Diff: third_party/WebKit/Source/core/css/MediaQueryExp.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/MediaQueryExp.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaQueryExp.cpp b/third_party/WebKit/Source/core/css/MediaQueryExp.cpp
index c40e9e6ffda17c50248552a3061254005ccbcb72..4db0f3ba1113e8a3837c7af8894ff94e998b19ad 100644
--- a/third_party/WebKit/Source/core/css/MediaQueryExp.cpp
+++ b/third_party/WebKit/Source/core/css/MediaQueryExp.cpp
@@ -225,11 +225,13 @@ MediaQueryExp* MediaQueryExp::createIfValid(
expValue.isID = true;
} else if (token.type() == NumberToken || token.type() == PercentageToken ||
token.type() == DimensionToken) {
- // Check for numeric token types since it is only safe for these types to call numericValue.
+ // Check for numeric token types since it is only safe for these types to
+ // call numericValue.
if (featureWithValidDensity(lowerMediaFeature, token) ||
featureWithValidPositiveLength(lowerMediaFeature, token)) {
- // Media features that must have non-negative <density>, ie. dppx, dpi or dpcm,
- // or Media features that must have non-negative <length> or number value.
+ // Media features that must have non-negative <density>, ie. dppx, dpi
+ // or dpcm, or Media features that must have non-negative <length> or
+ // number value.
expValue.value = token.numericValue();
expValue.unit = token.unitType();
expValue.isValue = true;
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp ('k') | third_party/WebKit/Source/core/css/MediaQueryList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698