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

Unified Diff: third_party/WebKit/Source/core/html/parser/AtomicHTMLToken.h

Issue 2121703002: Change HTMLTokenizer::Attribute::Range.start initial invalid value from 0 -> -1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update check Created 4 years, 5 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/parser/AtomicHTMLToken.h
diff --git a/third_party/WebKit/Source/core/html/parser/AtomicHTMLToken.h b/third_party/WebKit/Source/core/html/parser/AtomicHTMLToken.h
index 3c28c83ce1d4b07d9d13f0e8b71db44161812fbb..52948efaa40fe291f699284a0fc3b879c78720b5 100644
--- a/third_party/WebKit/Source/core/html/parser/AtomicHTMLToken.h
+++ b/third_party/WebKit/Source/core/html/parser/AtomicHTMLToken.h
@@ -235,10 +235,8 @@ inline void AtomicHTMLToken::initializeAttributes(const HTMLToken::AttributeList
if (attribute.nameAsVector().isEmpty())
continue;
- ASSERT(attribute.nameRange().start);
- ASSERT(attribute.nameRange().end);
- ASSERT(attribute.valueRange().start);
- ASSERT(attribute.valueRange().end);
+ attribute.nameRange().checkValid();
+ attribute.valueRange().checkValid();
AtomicString value(attribute.value8BitIfNecessary());
const QualifiedName& name = nameForAttribute(attribute);

Powered by Google App Engine
This is Rietveld 408576698