Bug 69932 - Custom fonts don't render in a region
Summary: Custom fonts don't render in a region
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dave Hyatt
URL:
Keywords: HasReduction
Depends on:
Blocks: 57312
  Show dependency treegraph
 
Reported: 2011-10-12 08:23 PDT by Razvan Caliman
Modified: 2011-10-13 11:44 PDT (History)
6 users (show)

See Also:


Attachments
Test case (670 bytes, text/html)
2011-10-12 08:24 PDT, Razvan Caliman
no flags Details
Patch (40.01 KB, patch)
2011-10-13 09:26 PDT, Dave Hyatt
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Razvan Caliman 2011-10-12 08:23:01 PDT
There is an issue when using remotely linked custom fonts (TTF / OTF) to style text content in a region.
On the latest Webkit nightly the custom font text doesn't render on page load. Selecting it, where it should render, will draw it on screen.
On Chromium the behavior is spotty: the text might render on page load but it will be invisible on page refresh.
Comment 1 Razvan Caliman 2011-10-12 08:24:25 PDT
Created attachment 110686 [details]
Test case
Comment 2 Dave Hyatt 2011-10-12 17:05:59 PDT
The problem is that regionOverflowRect() is used for repainting during a flow thread layout, but the flow thread's height is currently 0. Tricky.
Comment 3 Dave Hyatt 2011-10-12 17:07:08 PDT
Can probably just enforce a minimum size equal to the region content height.
Comment 4 Dave Hyatt 2011-10-13 00:19:31 PDT
Also need to disable layout state when fetching the repaint rectangle for regions, since the layout state pushed is the flow thread's and that's not going to be right.
Comment 5 Dave Hyatt 2011-10-13 09:26:54 PDT
Created attachment 110859 [details]
Patch
Comment 6 Dave Hyatt 2011-10-13 09:54:18 PDT
Fixed in r97370.
Comment 7 Ryosuke Niwa 2011-10-13 11:44:23 PDT
There's text diff on SL: http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r97370%20(33870)/fast/repaint/region-painting-via-layout-pretty-diff.html

Should we just rebaseline? Or is this actual failure?