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; |
} |
} |