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

Issue 1699323002: [Closed][SVG 4/4] Finish font subresource loading of SVG synchronously in SVGImage::dataChanged() (Closed)

Created:
4 years, 10 months ago by hiroshige
Modified:
3 years, 7 months ago
Reviewers:
kouhei (in TOK)
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Finish font subresource loading of SVG synchronously in SVGImage::dataChanged() This CL is [4/4] to load FontResource of data: URLs synchronously so that all subresource loading of SVG image completes before loading of the SVG file. By [1/4], [2/4] and [3/4], data URLs for fonts can be served synchronously in Resource::load(). But Resource::load() is not called synchronously in SVGImage::dataChanged(), because FontLoader schedules loading asynchronously in addFontToBeginLoading(). This CL triggers font loading by calling FontLoader::loadPendingFonts(). Font loading is started and completed synchronously inside loadPendingFonts(). This CL also call FrameLoader::checkCompleted() to make sure Document::loadEventFinished() becomes true after this call. This CL adds layout tests to check SVG document's load event is finished before load event of <img> for SVG files for various data font URLs. BUG=382170

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Add more tests. #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : Rebase. #

Patch Set 8 : Rebase. #

Patch Set 9 : auto-Rebase. #

Patch Set 10 : auto-Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/svg/as-image/data-font-in-css-crash.html View 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/as-image/data-font-in-css-crash-expected.txt View 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/as-image/data-font-in-css-invalid-data-url-crash.html View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/as-image/data-font-in-css-invalid-data-url-crash-expected.txt View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/as-image/data-font-in-css-invalid-font-crash.html View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/as-image/data-font-in-css-invalid-font-crash-expected.txt View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/as-image/resources/data-font-in-css.svg View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/as-image/resources/data-font-in-css-invalid-data-url.svg View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/as-image/resources/data-font-in-css-invalid-font.svg View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp View 1 2 3 4 5 6 7 9 2 chunks +8 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 42 (23 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1699323002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1699323002/1
4 years, 10 months ago (2016-02-16 22:34:30 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/174564)
4 years, 10 months ago (2016-02-16 23:32:17 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1699323002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1699323002/20001
4 years, 10 months ago (2016-02-17 02:20:33 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-17 05:39:36 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1699323002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1699323002/40001
4 years, 10 months ago (2016-02-17 19:37:49 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/175147)
4 years, 10 months ago (2016-02-17 20:45:41 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1699323002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1699323002/60001
4 years, 9 months ago (2016-02-29 19:47:03 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/181468)
4 years, 9 months ago (2016-02-29 20:23:40 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1699323002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1699323002/80001
4 years, 9 months ago (2016-02-29 22:02:04 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/189026)
4 years, 9 months ago (2016-02-29 23:10:58 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1699323002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1699323002/100001
4 years, 9 months ago (2016-03-01 01:04:41 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/31217)
4 years, 9 months ago (2016-03-01 03:12:50 UTC) #25
hiroshige
PTAL.
4 years, 9 months ago (2016-03-01 18:48:42 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1699323002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1699323002/120001
4 years, 9 months ago (2016-03-01 20:32:58 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/188610)
4 years, 9 months ago (2016-03-01 22:15:28 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1699323002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1699323002/140001
4 years, 9 months ago (2016-03-02 22:56:50 UTC) #36
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/189430)
4 years, 9 months ago (2016-03-03 00:07:54 UTC) #40
hiroshige
Due to Font delayed loading issues, I'm currently modifying CLs and this CL is not ...
4 years, 9 months ago (2016-03-03 00:10:06 UTC) #41
hiroshige
3 years, 7 months ago (2017-05-18 22:25:11 UTC) #42
Message was sent while issue was closed.
Closing, as https://codereview.chromium.org/2613853002/ (using a different
approach) is landed. Tests are landed there.

Powered by Google App Engine
This is Rietveld 408576698