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

Unified Diff: Source/core/html/HTMLElement.cpp

Issue 207783002: Omit "int" when using "unsigned" modifier (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « Source/core/editing/MarkupAccumulator.cpp ('k') | Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLElement.cpp
diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp
index 1a98cf035b19329dd366f97188a7a7072d8790bd..78ce6380b3f0212513af8a8114e34db69e5e6948 100644
--- a/Source/core/html/HTMLElement.cpp
+++ b/Source/core/html/HTMLElement.cpp
@@ -326,9 +326,9 @@ void HTMLElement::parseAttribute(const QualifiedName& name, const AtomicString&
PassRefPtr<DocumentFragment> HTMLElement::textToFragment(const String& text, ExceptionState& exceptionState)
{
RefPtr<DocumentFragment> fragment = DocumentFragment::create(document());
- unsigned int i, length = text.length();
+ unsigned i, length = text.length();
UChar c = 0;
- for (unsigned int start = 0; start < length; ) {
+ for (unsigned start = 0; start < length; ) {
// Find next line break.
for (i = start; i < length; i++) {
@@ -809,25 +809,25 @@ void HTMLElement::addHTMLLengthToStyle(MutableStylePropertySet* style, CSSProper
// strip attribute garbage..
StringImpl* v = value.impl();
if (v) {
- unsigned int l = 0;
+ unsigned length = 0;
- while (l < v->length() && (*v)[l] <= ' ')
- l++;
+ while (length < v->length() && (*v)[length] <= ' ')
+ length++;
- for (; l < v->length(); l++) {
- UChar cc = (*v)[l];
+ for (; length < v->length(); length++) {
+ UChar cc = (*v)[length];
if (cc > '9')
break;
if (cc < '0') {
if (cc == '%' || cc == '*')
- l++;
+ length++;
if (cc != '.')
break;
}
}
- if (l != v->length()) {
- addPropertyToPresentationAttributeStyle(style, propertyID, v->substring(0, l));
+ if (length != v->length()) {
+ addPropertyToPresentationAttributeStyle(style, propertyID, v->substring(0, length));
return;
}
}
« no previous file with comments | « Source/core/editing/MarkupAccumulator.cpp ('k') | Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698