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

Issue 754743004: Don't return false for RenderStyle::operator== while fonts load. (Closed)

Created:
6 years ago by rune
Modified:
6 years ago
Reviewers:
eae
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-rendering, Rik, danakj, Dominik Röttsches, krit, dstockwell, eae+blinkwatch, Eric Willigers, f(malita), jbroman, jchaffraix+rendering, leviw+renderwatch, Mike Lawther (Google), pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans, Steve Block, Timothy Loh, zoltan1
Project:
blink
Visibility:
Public.

Description

Don't return false for RenderStyle::operator== while fonts load. This caused an assert for baseRenderStyle in ActiveAnimations to hit. When a font finishes loading, we trigger a full recalc of Document. That recalc relies on getting a visual diff to trigger re-layout and paint and was triggered by the Font::operator==. Instead, we remove the false return from that operator and explicitly check if font loading status changed in RenderStyle::diffNeedsFullLayoutAndPaintInvalidation(). R=eae@chromium.org BUG=433765 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186572

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed review issue and regressions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -7 lines) Patch
A LayoutTests/http/tests/webfont/animation-assert.html View 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/webfont/animation-assert-expected.html View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M Source/platform/fonts/Font.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/fonts/Font.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/platform/fonts/shaping/HarfBuzzShaper.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 13 (1 generated)
rune
6 years ago (2014-12-04 12:50:46 UTC) #1
rune
https://codereview.chromium.org/754743004/diff/1/Source/core/rendering/style/RenderStyle.cpp File Source/core/rendering/style/RenderStyle.cpp (right): https://codereview.chromium.org/754743004/diff/1/Source/core/rendering/style/RenderStyle.cpp#newcode512 Source/core/rendering/style/RenderStyle.cpp:512: return true; This catches the case going from loading ...
6 years ago (2014-12-04 12:54:17 UTC) #2
eae
Seems like a good approach, judging by the failing tests though it looks like we've ...
6 years ago (2014-12-04 19:31:58 UTC) #3
rune
On 2014/12/04 at 19:31:58, eae wrote: > Seems like a good approach, judging by the ...
6 years ago (2014-12-04 20:56:57 UTC) #4
rune
On 2014/12/04 at 20:56:57, rune wrote: > On 2014/12/04 at 19:31:58, eae wrote: > > ...
6 years ago (2014-12-04 23:29:16 UTC) #5
eae
On 2014/12/04 23:29:16, rune wrote: > On 2014/12/04 at 20:56:57, rune wrote: > > On ...
6 years ago (2014-12-04 23:30:38 UTC) #6
rune
On 2014/12/04 at 23:30:38, eae wrote: > On 2014/12/04 23:29:16, rune wrote: > > On ...
6 years ago (2014-12-04 23:42:03 UTC) #7
eae
On 2014/12/04 23:42:03, rune wrote: > On 2014/12/04 at 23:30:38, eae wrote: > > On ...
6 years ago (2014-12-04 23:48:23 UTC) #8
rune
Triggered new try with Harfbuzz change. https://codereview.chromium.org/754743004/diff/1/Source/core/rendering/style/RenderStyle.cpp File Source/core/rendering/style/RenderStyle.cpp (right): https://codereview.chromium.org/754743004/diff/1/Source/core/rendering/style/RenderStyle.cpp#newcode512 Source/core/rendering/style/RenderStyle.cpp:512: return true; On ...
6 years ago (2014-12-05 00:21:39 UTC) #9
eae
On 2014/12/05 00:21:39, rune wrote: > Triggered new try with Harfbuzz change. > > https://codereview.chromium.org/754743004/diff/1/Source/core/rendering/style/RenderStyle.cpp ...
6 years ago (2014-12-05 00:23:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/754743004/20001
6 years ago (2014-12-05 06:04:29 UTC) #12
commit-bot: I haz the power
6 years ago (2014-12-05 06:56:29 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186572

Powered by Google App Engine
This is Rietveld 408576698