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

Issue 602373003: Make style building for 'font-family' less custom. (Closed)

Created:
6 years, 2 months ago by andersr
Modified:
6 years, 2 months ago
Reviewers:
dglazkov
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, Rik, danakj, dglazkov+blink, krit, ed+blinkwatch_opera.com, jamesr, jbroman, mkwst+moarreviews_chromium.org, pdr+graphicswatchlist_chromium.org, rwlbuis, rune+blink, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Make style building for 'font-family' less custom. This patch changes style building for 'font-family', such that the CSSValue -> FontFamily conversion happens on the outside, rather than passing the CSSValue directly to the FontBuilder. This aligns building of 'font-family' more with how everything else works, and also removes the final dependency on CSSValue in FontBuilder. The in-flight struct FontDescription::FamilyDescription is used to transfer FontFamily+GenericFamilyType from StyleBuilder::applyProperty to FontBuilder. Note: The unrelated FIXME was intentionally removed. I don't consider it valid (at least not anymore). R=dglazkov@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182839

Patch Set 1 #

Total comments: 1

Patch Set 2 : Init genericFamily in all cases. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -126 lines) Patch
M Source/core/css/CSSProperties.in View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/FontBuilder.h View 3 chunks +7 lines, -5 lines 0 comments Download
M Source/core/css/resolver/FontBuilder.cpp View 6 chunks +52 lines, -105 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.cpp View 1 1 chunk +71 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
M Source/platform/fonts/FontDescription.h View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
andersr
6 years, 2 months ago (2014-09-26 11:26:55 UTC) #1
dglazkov
lgtm https://codereview.chromium.org/602373003/diff/1/Source/core/css/resolver/FontBuilder.cpp File Source/core/css/resolver/FontBuilder.cpp (right): https://codereview.chromium.org/602373003/diff/1/Source/core/css/resolver/FontBuilder.cpp#newcode141 Source/core/css/resolver/FontBuilder.cpp:141: AtomicString FontBuilder::genericFontFamilyName(FontDescription::GenericFamilyType genericFamily) const AWESOME!!
6 years, 2 months ago (2014-09-26 17:52:53 UTC) #2
rune
You should change FontBuiler -> FontBuilder in the description before you land. An 'and' too ...
6 years, 2 months ago (2014-09-26 19:54:48 UTC) #3
andersr
On 2014/09/26 at 19:54:48, rune wrote: > You should change FontBuiler -> FontBuilder in the ...
6 years, 2 months ago (2014-09-29 08:55:21 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/602373003/1
6 years, 2 months ago (2014-09-29 08:56:35 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: android_blink_compile_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/android_blink_compile_dbg/builds/14183) android_blink_compile_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/android_blink_compile_rel/builds/14200) android_chromium_gn_compile_rel ...
6 years, 2 months ago (2014-09-29 09:12:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/602373003/20001
6 years, 2 months ago (2014-09-29 09:20:18 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/29237)
6 years, 2 months ago (2014-09-29 12:14:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/602373003/20001
6 years, 2 months ago (2014-09-29 12:40:06 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 13:20:47 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 182839

Powered by Google App Engine
This is Rietveld 408576698