Singly registered DocumentPaintDefinition may be used before second registration. |
||
Issue descriptionFrom my reading of the code, from the moment we register the first instance of a DocumentPaintDefinition[1] until the moment we register a second[2] we may use the first paint definition even though it may become invalid when the second is registered. https://chromium-review.googlesource.com/c/chromium/src/+/869891/6/third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp#68 I think this is incorrect behavior as we shouldn't start using the paint definition until we have seen that both definitions match. [1] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp?type=cs&q=document_definition_map.Set%5C(.*document_definition&sq=package:chromium&l=293 [2] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp?type=cs&q=document_definition_map.Set%5C(.*kInvalid&sq=package:chromium&l=277
,
Feb 8 2018
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Feb 8 2018