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

Issue 290563007: Defer style recalc when inserting extension stylesheets. (Closed)

Created:
6 years, 7 months ago by rune
Modified:
6 years, 7 months ago
Reviewers:
ojan
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Visibility:
Public.

Description

Defer style recalc when inserting extension stylesheets. StyleEngine::addAuthorSheet, used when injecting stylesheets from extensions, was doing a synchronous style recalc. Adding two stylesheets in a row would cause two style recalcs. Do a deferred style recalc instead. BUG=374901, 374162 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174424 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174555

Patch Set 1 #

Patch Set 2 : Added unit test. #

Patch Set 3 : Added some comments #

Patch Set 4 : NodeRenderStyle.h include needed on Mac. #

Patch Set 5 : Avoid Android crash #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -1 line) Patch
M Source/core/dom/StyleEngine.cpp View 1 chunk +1 line, -1 line 0 comments Download
A Source/web/tests/WebDocumentTest.cpp View 1 2 3 4 1 chunk +62 lines, -0 lines 1 comment Download
M Source/web/web.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
rune
It might be possible to add an extensions test to chromium to check that we ...
6 years, 7 months ago (2014-05-19 21:12:15 UTC) #1
ojan
lgtm Something we've been doing recently for these kinds of changes is to try to ...
6 years, 7 months ago (2014-05-20 03:18:15 UTC) #2
rune
On 2014/05/20 03:18:15, ojan wrote: > lgtm > > Something we've been doing recently for ...
6 years, 7 months ago (2014-05-20 12:02:15 UTC) #3
ojan
lgtm
6 years, 7 months ago (2014-05-20 19:23:12 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/290563007/40001
6 years, 7 months ago (2014-05-20 19:23:52 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-20 20:58:39 UTC) #6
rune
The CQ bit was checked by rune@opera.com
6 years, 7 months ago (2014-05-20 21:56:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/290563007/60001
6 years, 7 months ago (2014-05-20 21:56:51 UTC) #8
commit-bot: I haz the power
Change committed as 174424
6 years, 7 months ago (2014-05-20 23:21:07 UTC) #9
rune
https://codereview.chromium.org/290563007/diff/80001/Source/web/tests/WebDocumentTest.cpp File Source/web/tests/WebDocumentTest.cpp (right): https://codereview.chromium.org/290563007/diff/80001/Source/web/tests/WebDocumentTest.cpp#newcode32 Source/web/tests/WebDocumentTest.cpp:32: webViewHelper.initializeAndLoad("about:blank"); See https://code.google.com/p/chromium/issues/detail?id=375728 Using this as a work-around as ...
6 years, 7 months ago (2014-05-21 12:18:18 UTC) #10
rune
The CQ bit was checked by rune@opera.com
6 years, 7 months ago (2014-05-21 12:18:41 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/290563007/80001
6 years, 7 months ago (2014-05-21 17:49:30 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 06:08:35 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 12:09:36 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/9170)
6 years, 7 months ago (2014-05-22 12:09:36 UTC) #15
rune
The CQ bit was checked by rune@opera.com
6 years, 7 months ago (2014-05-22 12:32:54 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/290563007/80001
6 years, 7 months ago (2014-05-22 12:33:36 UTC) #17
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 14:24:26 UTC) #18
Message was sent while issue was closed.
Change committed as 174555

Powered by Google App Engine
This is Rietveld 408576698