<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>126260</bug_id>
          
          <creation_ts>2013-12-27 03:42:33 -0800</creation_ts>
          <short_desc>[CSS Regions] ruby base is not rendered on the second region when using css regions</short_desc>
          <delta_ts>2014-05-26 08:03:54 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.9</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>57312</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>ken_his</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mihnea</cc>
    
    <cc>WebkitBugTracker</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>963108</commentid>
    <comment_count>0</comment_count>
      <attachid>220057</attachid>
    <who name="">ken_his</who>
    <bug_when>2013-12-27 03:42:33 -0800</bug_when>
    <thetext>Created attachment 220057
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 &quot;A&quot; as a base of ruby &quot;a&quot; on the first region 
and &quot;B&quot; as a base of ruby &quot;b&quot; on the second region.
&quot;B&quot; is not rendered with this content.

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


RenderFlowThread::objectShouldPaintInFlowRegion() seems to prevent &quot;B&quot; from being rendered with region check by regionInRange(). 
(I&apos;ve confirmed that &quot;B&quot; is rendered with temporary modification that makes regionInRange() return true.)
This is because the mapped range of regions of &quot;B&quot; is different from the given region of objectShouldPaintInFlowRegion&apos;s argument.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998090</commentid>
    <comment_count>1</comment_count>
    <who name="Mihnea Ovidenie">mihnea</who>
    <bug_when>2014-04-06 23:17:47 -0700</bug_when>
    <thetext>Would you mind testing it again with the latest nightly, it works for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1011736</commentid>
    <comment_count>2</comment_count>
    <who name="Mihnea Ovidenie">mihnea</who>
    <bug_when>2014-05-26 08:03:54 -0700</bug_when>
    <thetext>Tested with 168728.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>220057</attachid>
            <date>2013-12-27 03:42:33 -0800</date>
            <delta_ts>2013-12-27 03:42:33 -0800</delta_ts>
            <desc>a simplified reproducing content</desc>
            <filename>ruby_base_disappeared_on_2nd_region.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>633</size>
            <attacher>ken_his</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBodG1sPg0K
PGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPg0KPGhlYWQ+DQo8c3R5
bGU+DQoucmVnaW9uLXNyYyB7DQogICAgLXdlYmtpdC1mbG93LWludG86IGV4YW1wbGUtdGV4dC1m
bG93Ow0KICAgIHBhZGRpbmc6IDA7DQogICAgbWFyZ2luOiAwOw0KfQ0KICANCi5yZWdpb25zIHsN
CiAgICBib3JkZXI6IDFweCBzb2xpZCBibGFjazsNCiAgICBwYWRkaW5nOiAycHg7DQogICAgbWFy
Z2luOiA1cHg7DQogICAgd2lkdGg6IDMwMHB4Ow0KICAgIGhlaWdodDogMTAwcHg7DQogICAgLXdl
YmtpdC1mbG93LWZyb206IGV4YW1wbGUtdGV4dC1mbG93Ow0KfQ0KPC9zdHlsZT4NCjwvaGVhZD4N
Cjxib2R5Pg0KDQo8ZGl2IGNsYXNzPSJyZWdpb24tc3JjIj4NCjxkaXYgc3R5bGU9InBhZ2UtYnJl
YWstYWZ0ZXI6YWx3YXlzOyI+PHJ1Ynk+QTxydD5hPC9ydD48L3J1Ynk+PC9kaXY+DQo8ZGl2Pjxy
dWJ5PkI8cnQ+YjwvcnQ+PC9ydWJ5PjwvZGl2Pg0KPC9kaXY+DQoNCg0KPGRpdiBjbGFzcz0icmVn
aW9ucyI+PC9kaXY+DQo8ZGl2IGNsYXNzPSJyZWdpb25zIj48L2Rpdj4NCjwvYm9keT4NCjwvaHRt
bD4NCg0K
</data>

          </attachment>
      

    </bug>

</bugzilla>