|
|
Chromium Code Reviews|
Created:
4 years, 3 months ago by Kunihiko Sakamoto Modified:
4 years, 2 months ago CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionFix FontFaceSet state getting stuck at loading
This fixes a bug where the status attribute of FontFaceSet gets stuck
at "loading" when @font-face rule is removed while the font is loading.
Before this patch, font load completion was notified from
CSSFontFace::setLoadStatus() via m_segmentedFontFace, but if the
@font-face rule is detached, m_segmentedFontFace is null.
After this patch, FontFaceSet registers itself as an observer of
FontFace for load completion.
BUG=641322
Committed: https://crrev.com/035a2a978b7ec4f87439c355af25941fb0b9cfca
Cr-Commit-Position: refs/heads/master@{#421114}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Separate test case #
Messages
Total messages: 43 (30 generated)
The CQ bit was checked by ksakamoto@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by ksakamoto@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_a...)
The CQ bit was checked by ksakamoto@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #2 (id:20001) has been deleted
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Patchset #1 (id:1) has been deleted
Description was changed from ========== WIP ========== to ========== Fix FontFaceSet state getting stuck at loading This fixes a bug where the status attribute of FontFaceSet gets stuck at "loading" when @font-face rule is removed while the font is loading. Font load completion was notified from CSSFontFace::setLoadStatus() via m_segmentedFontFace, but m_segmentedFontFace is null if the @font-face rule is detached. After this patch, FontFaceSet registers itself as an observer of FontFace for load completion. BUG=641322 ==========
Description was changed from ========== Fix FontFaceSet state getting stuck at loading This fixes a bug where the status attribute of FontFaceSet gets stuck at "loading" when @font-face rule is removed while the font is loading. Font load completion was notified from CSSFontFace::setLoadStatus() via m_segmentedFontFace, but m_segmentedFontFace is null if the @font-face rule is detached. After this patch, FontFaceSet registers itself as an observer of FontFace for load completion. BUG=641322 ========== to ========== Fix FontFaceSet state getting stuck at loading This fixes a bug where the status attribute of FontFaceSet gets stuck at "loading" when @font-face rule is removed while the font is loading. Before this patch, font load completion was notified from CSSFontFace::setLoadStatus() via m_segmentedFontFace, but m_segmentedFontFace is null if the @font-face rule is detached. After this patch, FontFaceSet registers itself as an observer of FontFace for load completion. BUG=641322 ==========
Description was changed from ========== Fix FontFaceSet state getting stuck at loading This fixes a bug where the status attribute of FontFaceSet gets stuck at "loading" when @font-face rule is removed while the font is loading. Before this patch, font load completion was notified from CSSFontFace::setLoadStatus() via m_segmentedFontFace, but m_segmentedFontFace is null if the @font-face rule is detached. After this patch, FontFaceSet registers itself as an observer of FontFace for load completion. BUG=641322 ========== to ========== Fix FontFaceSet state getting stuck at loading This fixes a bug where the status attribute of FontFaceSet gets stuck at "loading" when @font-face rule is removed while the font is loading. Before this patch, font load completion was notified from CSSFontFace::setLoadStatus() via m_segmentedFontFace, but if the @font-face rule is detached m_segmentedFontFace is null. After this patch, FontFaceSet registers itself as an observer of FontFace for load completion. BUG=641322 ==========
ksakamoto@chromium.org changed reviewers: + toyoshim@chromium.org
Toyoshima-san, PTAL?
In the CL description, > @font-face rule is detached m_segmentedFontFace is null. Does this mean "... was detached, m_segmentedFontFace is null here"? Probably, inserting "," makes easy to understand this line.
Description was changed from ========== Fix FontFaceSet state getting stuck at loading This fixes a bug where the status attribute of FontFaceSet gets stuck at "loading" when @font-face rule is removed while the font is loading. Before this patch, font load completion was notified from CSSFontFace::setLoadStatus() via m_segmentedFontFace, but if the @font-face rule is detached m_segmentedFontFace is null. After this patch, FontFaceSet registers itself as an observer of FontFace for load completion. BUG=641322 ========== to ========== Fix FontFaceSet state getting stuck at loading This fixes a bug where the status attribute of FontFaceSet gets stuck at "loading" when @font-face rule is removed while the font is loading. Before this patch, font load completion was notified from CSSFontFace::setLoadStatus() via m_segmentedFontFace, but if the @font-face rule is detached, m_segmentedFontFace is null. After this patch, FontFaceSet registers itself as an observer of FontFace for load completion. BUG=641322 ==========
On 2016/09/16 05:07:00, toyoshim wrote: > In the CL description, > > @font-face rule is detached m_segmentedFontFace is null. > > Does this mean "... was detached, m_segmentedFontFace is null here"? > Probably, inserting "," makes easy to understand this line. Thanks, the description updated.
lgtm with one oprional request on test.
Oops, forgot to publish. https://codereview.chromium.org/2340273002/diff/40001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/http/tests/webfont/fontfaceset-status-attribute.html (right): https://codereview.chromium.org/2340273002/diff/40001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/http/tests/webfont/fontfaceset-status-attribute.html:1: <!DOCTYPE html> I slightly prefer to keep the original test case (with new test style), and to add new test case with removing css font as another test.
The CQ bit was checked by ksakamoto@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
ksakamoto@chromium.org changed reviewers: + kouhei@chromium.org
+kouhei for OWNERs review https://codereview.chromium.org/2340273002/diff/40001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/http/tests/webfont/fontfaceset-status-attribute.html (right): https://codereview.chromium.org/2340273002/diff/40001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/http/tests/webfont/fontfaceset-status-attribute.html:1: <!DOCTYPE html> On 2016/09/16 05:40:50, toyoshim wrote: > I slightly prefer to keep the original test case (with new test style), and to > add new test case with removing css font as another test. Done.
kouhei@: ping?
lgtm
The CQ bit was checked by ksakamoto@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from toyoshim@chromium.org Link to the patchset: https://codereview.chromium.org/2340273002/#ps60001 (title: "Separate test case")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by ksakamoto@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Fix FontFaceSet state getting stuck at loading This fixes a bug where the status attribute of FontFaceSet gets stuck at "loading" when @font-face rule is removed while the font is loading. Before this patch, font load completion was notified from CSSFontFace::setLoadStatus() via m_segmentedFontFace, but if the @font-face rule is detached, m_segmentedFontFace is null. After this patch, FontFaceSet registers itself as an observer of FontFace for load completion. BUG=641322 ========== to ========== Fix FontFaceSet state getting stuck at loading This fixes a bug where the status attribute of FontFaceSet gets stuck at "loading" when @font-face rule is removed while the font is loading. Before this patch, font load completion was notified from CSSFontFace::setLoadStatus() via m_segmentedFontFace, but if the @font-face rule is detached, m_segmentedFontFace is null. After this patch, FontFaceSet registers itself as an observer of FontFace for load completion. BUG=641322 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Fix FontFaceSet state getting stuck at loading This fixes a bug where the status attribute of FontFaceSet gets stuck at "loading" when @font-face rule is removed while the font is loading. Before this patch, font load completion was notified from CSSFontFace::setLoadStatus() via m_segmentedFontFace, but if the @font-face rule is detached, m_segmentedFontFace is null. After this patch, FontFaceSet registers itself as an observer of FontFace for load completion. BUG=641322 ========== to ========== Fix FontFaceSet state getting stuck at loading This fixes a bug where the status attribute of FontFaceSet gets stuck at "loading" when @font-face rule is removed while the font is loading. Before this patch, font load completion was notified from CSSFontFace::setLoadStatus() via m_segmentedFontFace, but if the @font-face rule is detached, m_segmentedFontFace is null. After this patch, FontFaceSet registers itself as an observer of FontFace for load completion. BUG=641322 Committed: https://crrev.com/035a2a978b7ec4f87439c355af25941fb0b9cfca Cr-Commit-Position: refs/heads/master@{#421114} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/035a2a978b7ec4f87439c355af25941fb0b9cfca Cr-Commit-Position: refs/heads/master@{#421114} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
