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

Issue 73993002: Reset fontselector() when removing stylesheets and left stylesheets still have @font-face rules. (Closed)

Created:
7 years, 1 month ago by tasak
Modified:
7 years, 1 month ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

Reset fontselector() when removing stylesheets and left stylesheets still have @font-face rules. If not reset, CSSSegmentedFontFaceCache has mulitple fontFaces for the same @font-face rule. This causes fast/css/font-face-html-as-svg flaky (Timeout in mac-blink-rel). BUG=305885, 309370 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162432

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fixed #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -1 line) Patch
M Source/core/dom/StyleSheetCollection.cpp View 1 3 chunks +17 lines, -1 line 4 comments Download

Messages

Total messages: 9 (0 generated)
tasak
7 years, 1 month ago (2013-11-15 12:18:46 UTC) #1
tasak
https://codereview.chromium.org/73993002/diff/1/Source/core/dom/StyleSheetCollection.cpp File Source/core/dom/StyleSheetCollection.cpp (right): https://codereview.chromium.org/73993002/diff/1/Source/core/dom/StyleSheetCollection.cpp#newcode171 Source/core/dom/StyleSheetCollection.cpp:171: } I found that the following code is better: ...
7 years, 1 month ago (2013-11-15 15:22:27 UTC) #2
tasak
Would you review this CL?
7 years, 1 month ago (2013-11-18 08:48:53 UTC) #3
ojan
lgtm https://codereview.chromium.org/73993002/diff/80001/Source/core/dom/StyleSheetCollection.cpp File Source/core/dom/StyleSheetCollection.cpp (right): https://codereview.chromium.org/73993002/diff/80001/Source/core/dom/StyleSheetCollection.cpp#newcode170 Source/core/dom/StyleSheetCollection.cpp:170: // we can avoid appending all stylesheetcontents in ...
7 years, 1 month ago (2013-11-21 00:57:47 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tasak@google.com/73993002/80001
7 years, 1 month ago (2013-11-21 01:04:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tasak@google.com/73993002/80001
7 years, 1 month ago (2013-11-21 01:33:25 UTC) #6
commit-bot: I haz the power
Change committed as 162432
7 years, 1 month ago (2013-11-21 03:02:54 UTC) #7
ojan
https://codereview.chromium.org/73993002/diff/80001/Source/core/dom/StyleSheetCollection.cpp File Source/core/dom/StyleSheetCollection.cpp (right): https://codereview.chromium.org/73993002/diff/80001/Source/core/dom/StyleSheetCollection.cpp#newcode174 Source/core/dom/StyleSheetCollection.cpp:174: change.styleResolverUpdateType = Reset; Hmmm...not lgtm actually. Now that I ...
7 years, 1 month ago (2013-11-22 01:08:54 UTC) #8
tasak
7 years, 1 month ago (2013-11-22 05:16:24 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/73993002/diff/80001/Source/core/dom/StyleShee...
File Source/core/dom/StyleSheetCollection.cpp (right):

https://codereview.chromium.org/73993002/diff/80001/Source/core/dom/StyleShee...
Source/core/dom/StyleSheetCollection.cpp:170: // we can avoid appending all
stylesheetcontents in reset case.
On 2013/11/21 00:57:48, ojan wrote:
> I'm hoping that once this is done we can get rid of the Reset codepath
entirely
> and just do Reconstruct instead in those cases (we'd still keep Additive).

Yeah, I think, this patch is a temporary one.

> Recreating the StyleResolver should be very inexpensive if we're not
recreating
> the RuleSets.

I see.

https://codereview.chromium.org/73993002/diff/80001/Source/core/dom/StyleShee...
Source/core/dom/StyleSheetCollection.cpp:174: change.styleResolverUpdateType =
Reset;
On 2013/11/22 01:08:54, ojan wrote:
> Hmmm...not lgtm actually. Now that I look more closely at the patch, this line
> will always override the work from the new code above.

Yeah, It's my fault.

I'm now trying to land the fixing patch for this.

Powered by Google App Engine
This is Rietveld 408576698