Chromium Code Reviews
DescriptionMake EphemeralRange to accept only valid positions
This patch introduces |DCHECK_LE(start, end)| for start and end positions of
|EphemeralRange| constructor and changing call sites of constructor for
wrong start/end parameter case, to catch wrong call sites for improving code
health and ease of debugging.
This patch is intended to help to find the root cause of crbug.com/624335, which
causes null pointer reference for iterating over |nodeAsRangeFirstNode()|
of start of range to |nodeAsRangePastLastNode()| of end of range. We would
like to know which call site makes this wrong range.
BUG=624335
TEST=Covered by existing test
Committed: https://crrev.com/4fb42e48b7175ccfabd887dc3ebb80a1697139e7
Cr-Commit-Position: refs/heads/master@{#404308}
Patch Set 1 : 2016-07-07T15:58:08 #Patch Set 2 : 2016-07-07T18:31:23 #
Messages
Total messages: 11 (6 generated)
|
|||||||||||||||||||||||||||||||||||||