Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(950)

Issue 864143006: Remove unsafe DEFINE_STATIC_LOCALs in CSSPrimitiveValue (Closed)

Created:
5 years, 11 months ago by kinuko
Modified:
5 years ago
CC:
blink-reviews, blink-reviews-css, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Remove unsafe DEFINE_STATIC_LOCALs in CSSPrimitiveValue It looks CSSPrimitiveValue is used both on the main thread and on the HTMLParser thread. BUG=367982 TEST=fast/dom with http://crrev.com/874203002 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189163

Patch Set 1 #

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -4 lines) Patch
M Source/core/Init.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/CSSPrimitiveValue.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSPrimitiveValue.cpp View 1 4 chunks +22 lines, -4 lines 1 comment Download

Messages

Total messages: 13 (5 generated)
kinuko
I haven't looked really deeply but it looks it's unsafe usage. Could either of you ...
5 years, 11 months ago (2015-01-27 14:24:42 UTC) #2
kinuko
kouhei-san, probably you can review this?
5 years, 10 months ago (2015-01-29 04:45:30 UTC) #5
Timothy Loh
On 2015/01/27 14:24:42, kinuko wrote: > I haven't looked really deeply but it looks it's ...
5 years, 10 months ago (2015-01-29 04:48:32 UTC) #6
kinuko
On 2015/01/29 04:48:32, Timothy Loh wrote: > On 2015/01/27 14:24:42, kinuko wrote: > > I ...
5 years, 10 months ago (2015-01-29 05:07:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/864143006/40001
5 years, 10 months ago (2015-01-29 05:08:29 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=189163
5 years, 10 months ago (2015-01-29 05:11:48 UTC) #10
kouhei (in TOK)
lgtm
5 years, 10 months ago (2015-01-29 05:21:55 UTC) #11
sof
5 years ago (2015-12-02 13:32:41 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/864143006/diff/40001/Source/core/css/CSSPrimi...
File Source/core/css/CSSPrimitiveValue.cpp (right):

https://codereview.chromium.org/864143006/diff/40001/Source/core/css/CSSPrimi...
Source/core/css/CSSPrimitiveValue.cpp:219:
AtomicallyInitializedStaticReference(ThreadSpecific<CSSTextCache>, cache, new
ThreadSpecific<CSSTextCache>());
fwiw, http/tests/misc/client-hints-picture-source-removal.html is a test that
exercises non-main thread use of cssTextCache().

Powered by Google App Engine
This is Rietveld 408576698