Bug 69932

Summary: Custom fonts don't render in a region
Product: WebKit Reporter: Razvan Caliman <rcaliman>
Component: CSSAssignee: Dave Hyatt <hyatt>
Severity: Normal CC: achicu, hyatt, mihnea, mitz, rcaliman, rniwa
Priority: P2 Keywords: HasReduction
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 57312    
Description Flags
Test case
Patch mitz: review+

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]
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?