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

Issue 137253005: [Font Load Events] Partial implementation of SetClass operations for FontFaceSet (Closed)

Created:
6 years, 11 months ago by Kunihiko Sakamoto
Modified:
6 years, 11 months ago
CC:
blink-reviews, arv+blink, dglazkov+blink, apavlov+blink_chromium.org, Inactive, darktears, watchdog-blink-watchlist_google.com
Visibility:
Public.

Description

[Font Load Events] Partial implementation of SetClass operations for FontFaceSet This adds has() and forEach() methods and size attribute to FontFaceSet. These are indicated by SetClass(FontFace) extended attribute of the FontFaceSet interface[1]. The set interface should match the ES6 Set objects[2]. This patch also makes FontFaceSet accesses CSSSegmentedFontFaceCache directly; now CSSSegmentedFontFaceCache is a common backend for CSSFontSelector and FontFaceSet. [1] http://dev.w3.org/csswg/css-font-load-events/#FontFaceSet-interface [2] https://people.mozilla.org/~jorendorff/es6-draft.html#sec-set-objects BUG=53213 TEST=fast/css/fontfaceset-set-operations.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165185

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix callback arguments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -20 lines) Patch
A LayoutTests/fast/css/fontfaceset-set-operations.html View 1 1 chunk +60 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/fontfaceset-set-operations-expected.txt View 1 1 chunk +22 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSFontSelector.h View 2 chunks +1 line, -1 line 0 comments Download
M Source/core/css/CSSFontSelector.cpp View 1 chunk +1 line, -6 lines 0 comments Download
M Source/core/css/CSSSegmentedFontFaceCache.h View 3 chunks +5 lines, -0 lines 0 comments Download
M Source/core/css/CSSSegmentedFontFaceCache.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/css/FontFace.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/FontFaceSet.h View 3 chunks +7 lines, -0 lines 0 comments Download
M Source/core/css/FontFaceSet.cpp View 1 6 chunks +57 lines, -4 lines 0 comments Download
M Source/core/css/FontFaceSet.idl View 1 chunk +8 lines, -0 lines 0 comments Download
A + Source/core/css/FontFaceSetForEachCallback.h View 1 2 chunks +10 lines, -8 lines 0 comments Download
A + Source/core/css/FontFaceSetForEachCallback.idl View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Kunihiko Sakamoto
6 years, 11 months ago (2014-01-14 05:37:29 UTC) #1
dglazkov
lgtm fonty parts, but I think you need arv/haraken to look at the IDL things. ...
6 years, 11 months ago (2014-01-14 18:27:35 UTC) #2
arv (Not doing code reviews)
Not LGTM The interface should match ES6 https://codereview.chromium.org/137253005/diff/1/Source/core/css/FontFaceSetForEachCallback.idl File Source/core/css/FontFaceSetForEachCallback.idl (right): https://codereview.chromium.org/137253005/diff/1/Source/core/css/FontFaceSetForEachCallback.idl#newcode32 Source/core/css/FontFaceSetForEachCallback.idl:32: [CallWith=ThisValue] boolean ...
6 years, 11 months ago (2014-01-14 19:45:19 UTC) #3
Kunihiko Sakamoto
PTAL Thanks for pointing it out. I didn't know ES6 defines the Set interface. https://codereview.chromium.org/137253005/diff/1/Source/core/css/FontFaceSetForEachCallback.idl ...
6 years, 11 months ago (2014-01-15 01:42:02 UTC) #4
arv (Not doing code reviews)
Thanks, LGTM
6 years, 11 months ago (2014-01-15 15:23:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ksakamoto@chromium.org/137253005/120001
6 years, 11 months ago (2014-01-16 00:58:31 UTC) #6
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 02:40:44 UTC) #7
Message was sent while issue was closed.
Change committed as 165185

Powered by Google App Engine
This is Rietveld 408576698