|Summary:||Custom fonts don't render in a region|
|Product:||WebKit||Reporter:||Razvan Caliman <rcaliman>|
|Component:||CSS||Assignee:||Dave Hyatt <hyatt>|
|Severity:||Normal||CC:||achicu, hyatt, mihnea, mitz, rcaliman, rniwa|
|Version:||528+ (Nightly build)|
|Bug Depends on:|
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 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 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?