Chromium Code Reviews
DescriptionColor parsing in CSSParser: avoid using ColorValueCache on worker thread
ColorValueCache is one of the many heap hashmap that CSSValuePool (a global
static instance) maintains to store re-usable CSS Color values. It is not
thread-safe; thus it is problematic when new CSS Color values are inserted into
it and later retrieved from it, on worker threads.
Because making CSSParser thread-safe is not a trivial effort, this patch is a
temporary (and possibly permanent depending on discussions) solution for the
correct color parsing of OffscreenCanvas on a worker.
BUG=598706
Committed: https://crrev.com/4c51c29704df5572015f4d4b12589c9e6dca437c
Cr-Commit-Position: refs/heads/master@{#384448}
Patch Set 1 #Patch Set 2 : Layout Tests #Patch Set 3 : Compress layout tests; TODO bug #
Total comments: 1
Patch Set 4 : Nits #Patch Set 5 : Rebase #
Messages
Total messages: 19 (10 generated)
|
|||||||||||||||||||||||||||||||||||||