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

Issue 22923010: DevTools: Add CSS.getPlatformFontsForNode in protocol.json (Closed)

Created:
7 years, 4 months ago by lushnikov
Modified:
7 years, 4 months ago
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, lushnikov+blink_chromium.org, leviw+renderwatch, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, jchaffraix+rendering, devtools-reviews_chromium.org, aandrey+blink_chromium.org
Visibility:
Public.

Description

DevTools: Add CSS.getPlatformFontsForNode in protocol.json This patch adds method CSS.getPlatformFontsForNode to the protocol. The method returns platform fonts that were used to render child text nodes for the given node. BUG=135489 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156505

Patch Set 1 #

Total comments: 10

Patch Set 2 : address most of the comments #

Patch Set 3 : add mac support #

Patch Set 4 : remove unnecessary header #

Patch Set 5 : rebaseline #

Patch Set 6 : fix signed and unsigned comparison #

Patch Set 7 : support win #

Patch Set 8 : Fix bug which crashed renderer on mac os x #

Patch Set 9 : cleanup #

Total comments: 2

Patch Set 10 : address comments #

Total comments: 4

Patch Set 11 : use HFONT instead of SKTypeface on Win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -0 lines) Patch
A LayoutTests/inspector-protocol/css-get-platform-fonts.html View 1 2 3 4 5 6 7 8 1 chunk +77 lines, -0 lines 0 comments Download
A LayoutTests/inspector-protocol/css-get-platform-fonts-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorCSSAgent.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorCSSAgent.cpp View 1 2 3 4 5 6 7 8 2 chunks +67 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/FontPlatformData.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/cocoa/FontPlatformDataCocoa.mm View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.cpp View 1 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/rendering/InlineTextBox.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/InlineTextBox.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/devtools/protocol.json View 1 2 3 4 5 6 7 8 9 10 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
lushnikov
Please take a look
7 years, 4 months ago (2013-08-15 18:30:01 UTC) #1
pfeldman
https://chromiumcodereview.appspot.com/22923010/diff/1/LayoutTests/inspector-protocol/dom-get-platform-fonts-expected.txt File LayoutTests/inspector-protocol/dom-get-platform-fonts-expected.txt (right): https://chromiumcodereview.appspot.com/22923010/diff/1/LayoutTests/inspector-protocol/dom-get-platform-fonts-expected.txt#newcode3 LayoutTests/inspector-protocol/dom-get-platform-fonts-expected.txt:3: {"textNodeList":[{"text":"First line.\n","fonts":["Times New Roman","Courier New","Courier New","Courier New","Courier New","Courier New","Courier ...
7 years, 4 months ago (2013-08-16 08:16:47 UTC) #2
lushnikov
please take a look
7 years, 4 months ago (2013-08-19 12:32:55 UTC) #3
pfeldman
lgtm Please make sure platformfont-specific code is reviewed by the people who know how it ...
7 years, 4 months ago (2013-08-19 12:40:12 UTC) #4
lushnikov
@pdr, @fmalita: Could you please have a look on this patch? It touches some font ...
7 years, 4 months ago (2013-08-19 12:57:00 UTC) #5
pdr.
On 2013/08/19 12:57:00, lushnikov wrote: > @pdr, @fmalita: Could you please have a look on ...
7 years, 4 months ago (2013-08-19 17:33:48 UTC) #6
pdr.
On 2013/08/19 17:33:48, pdr wrote: > On 2013/08/19 12:57:00, lushnikov wrote: > > @pdr, @fmalita: ...
7 years, 4 months ago (2013-08-19 17:34:07 UTC) #7
eae
https://codereview.chromium.org/22923010/diff/39001/Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp File Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp (right): https://codereview.chromium.org/22923010/diff/39001/Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp#newcode207 Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp:207: String FontPlatformData::fontFamilyName() const Until we switch windows over to ...
7 years, 4 months ago (2013-08-19 19:36:43 UTC) #8
lushnikov
@eae, I've fixed PlatformDataChromiumWin to use HFONT instead of skia, could you please take another ...
7 years, 4 months ago (2013-08-21 13:43:14 UTC) #9
eae
LGTM. Ok, as long as you are aware of it and want that behavior.
7 years, 4 months ago (2013-08-21 15:34:41 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/22923010/47001
7 years, 4 months ago (2013-08-21 20:34:56 UTC) #11
commit-bot: I haz the power
7 years, 4 months ago (2013-08-21 21:44:25 UTC) #12
Message was sent while issue was closed.
Change committed as 156505

Powered by Google App Engine
This is Rietveld 408576698