|
Remove explicit bounds check from CSSValueList::item
Currently CSSValueList::item does a bounds check and will return null if
the given index is out of range. This patch makes the interface slightly
more sane by removing the check, which is currently otherwise skipped by
calling itemWithoutBoundsCheck. Note that the vector access will perform
a bounds check (with release assert) anyway. The only caller where the
bounds check behaviour is useful is for the IDL binding so a separate
function itemWithBoundsCheck is created for this (already tested by
value-list-out-of-bounds-crash.html).
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177064
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+69 lines, -68 lines) |
Patch |
 |
M |
Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/CSSValueList.h
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/CSSValueList.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/css/FontFace.cpp
|
View
|
1
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/StylePropertySerializer.cpp
|
View
|
1
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/parser/CSSPropertyParser.cpp
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/resolver/CSSToStyleMap.cpp
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/resolver/FilterOperationResolver.cpp
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/resolver/FontBuilder.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/resolver/StyleBuilderConverter.cpp
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/resolver/StyleBuilderCustom.cpp
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/resolver/TransformBuilder.cpp
|
View
|
|
9 chunks |
+33 lines, -33 lines |
0 comments
|
Download
|
 |
M |
Source/core/svg/SVGFontFaceElement.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|