Bug 126260

Summary: [CSS Regions] ruby base is not rendered on the second region when using css regions
Product: WebKit Reporter: ken_his
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: mihnea, WebkitBugTracker
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.9   
Bug Depends on:    
Bug Blocks: 57312    
Attachments:
Description Flags
a simplified reproducing content none

Description ken_his 2013-12-27 03:42:33 PST
Created attachment 220057 [details]
a simplified reproducing content

With contents using css region, ruby base is not rendered on the second region.

The attached content is a simple content to reproduce this issue.
It has "A" as a base of ruby "a" on the first region 
and "B" as a base of ruby "b" on the second region.
"B" is not rendered with this content.

It's reproducible with r161096 built from source code.
(and reproducible with nightly build r161093 also)


RenderFlowThread::objectShouldPaintInFlowRegion() seems to prevent "B" from being rendered with region check by regionInRange(). 
(I've confirmed that "B" is rendered with temporary modification that makes regionInRange() return true.)
This is because the mapped range of regions of "B" is different from the given region of objectShouldPaintInFlowRegion's argument.
Comment 1 Mihnea Ovidenie 2014-04-06 23:17:47 PDT
Would you mind testing it again with the latest nightly, it works for me.
Comment 2 Mihnea Ovidenie 2014-05-26 08:03:54 PDT
Tested with 168728.