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

Unified Diff: third_party/WebKit/Source/core/html/HTMLDimension.cpp

Issue 2384273007: reflow comments in core/html/*.{cpp,h},core/html/imports (Closed)
Patch Set: comments 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/html/HTMLDimension.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLDimension.cpp b/third_party/WebKit/Source/core/html/HTMLDimension.cpp
index 3ca8a98b22afee273dafebb8b82e88116f20199e..eb5086168e83742a34d87b67a4a91bcaef042f25 100644
--- a/third_party/WebKit/Source/core/html/HTMLDimension.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLDimension.cpp
@@ -43,12 +43,14 @@ static HTMLDimension parseDimension(const CharacterType* characters,
HTMLDimension::HTMLDimensionType type = HTMLDimension::Absolute;
double value = 0.;
- // HTML5's split removes leading and trailing spaces so we need to skip the leading spaces here.
+ // HTML5's split removes leading and trailing spaces so we need to skip the
+ // leading spaces here.
while (lastParsedIndex < endOfCurrentToken &&
isASCIISpace((characters[lastParsedIndex])))
++lastParsedIndex;
- // This is Step 5.5. in the algorithm. Going to the last step would make the code less readable.
+ // This is Step 5.5. in the algorithm. Going to the last step would make the
+ // code less readable.
if (lastParsedIndex >= endOfCurrentToken)
return HTMLDimension(value, HTMLDimension::Relative);
@@ -125,7 +127,8 @@ Vector<HTMLDimension> parseListOfDimensions(const String& input) {
if (trimmedString.isEmpty())
return Vector<HTMLDimension>();
- // Step 3. To avoid String copies, we just look for commas instead of splitting.
+ // Step 3. To avoid String copies, we just look for commas instead of
+ // splitting.
Vector<HTMLDimension> parsedDimensions;
size_t lastParsedIndex = 0;
while (true) {
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLDialogElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698