Chromium Code Reviews
DescriptionDCHECK that paint properties are never null
This patch adds a new DCHECK that paint chunk properties are not null,
along with comments describing how to fix this situation if one is
unlucky enough to hit it. Now that we have root paint property nodes,
the properties of a paint chunk should never be null.
The asserts in this patch uncovered a bug where FrameView scrollbars
were painted with null paint property nodes. This has been fixed by
ensuring all properties, not just the transform property, are
specified in FramePainter. This fixed 18 test failures due to the new
assert.
The asserts in this patch also uncovered a case where we were using
null paint properties in SkPictureBuilder when optimizing the display
item list of the CompositingRecorder. An assert disabler has been
added because this case is safe, and comments have been added
describing why.
BUG=645615
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Committed: https://crrev.com/29bb3301df59c321abee8d9d226bf38e3877a5fb
Cr-Commit-Position: refs/heads/master@{#431967}
Patch Set 1 #Patch Set 2 : Fix null paint properties in FrameView scrollbar painting #
Total comments: 1
Patch Set 3 : Fix typeo #Patch Set 4 : Fix null paint property crashes from SkPictureBuilder #Patch Set 5 : dcheckmate #
Messages
Total messages: 26 (17 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||