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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/HTMLViewSourceDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLViewSourceDocument.cpp b/third_party/WebKit/Source/core/html/HTMLViewSourceDocument.cpp
index 1187e24824105607e6f1c0e99311ba7a09742927..06a32f2b29391231ecc5c7c38ef72157e6e83697 100644
--- a/third_party/WebKit/Source/core/html/HTMLViewSourceDocument.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLViewSourceDocument.cpp
@@ -163,11 +163,13 @@ void HTMLViewSourceDocument::processTagToken(const String& source,
iter->valueRange().start - token.startIndex(), emptyAtom);
if (name == srcsetAttr) {
- index = addSrcset(source, index, iter->valueRange().end - token.startIndex());
+ index =
+ addSrcset(source, index, iter->valueRange().end - token.startIndex());
} else {
- bool isLink = name == srcAttr || name == hrefAttr;
- index = addRange(source, index, iter->valueRange().end - token.startIndex(),
- "html-attribute-value", isLink, tagName == aTag, value);
+ bool isLink = name == srcAttr || name == hrefAttr;
+ index =
+ addRange(source, index, iter->valueRange().end - token.startIndex(),
+ "html-attribute-value", isLink, tagName == aTag, value);
}
++iter;
@@ -317,9 +319,9 @@ Element* HTMLViewSourceDocument::addLink(const AtomicString& url,
}
int HTMLViewSourceDocument::addSrcset(const String& source,
- int start,
- int end) {
- String srcset = source.substring(start, end-start);
+ int start,
+ int end) {
+ String srcset = source.substring(start, end - start);
Vector<String> srclist;
srcset.split(',', true, srclist);
unsigned size = srclist.size();
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLViewSourceDocument.h ('k') | third_party/WebKit/Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698