Chromium Code Reviews
DescriptionAll offset in dom/Range.idl should be unsigned long
https://dom.spec.whatwg.org/#interface-range
According to DOM standard, all offsets (including attributes
and arguments) in `dom/Range.idl` should be `unsigned long`.
For `m_offsetInContainer` in `RangeBoundaryPoint`, it can't be
negative value to indicate invalid offset since signedness changes
to unsigned, so the new bool value `m_isValidOffset` is introduced.
And RangeBoundaryPoint::invalidateOffset() has been removed since
it's not used in codebase.
Tests were changed accordingly
BUG=658716
Patch Set 1 #Patch Set 2 : Remove unnecessary static_cast #Messages
Total messages: 1 (1 generated)
|