<?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>135453</bug_id>
          
          <creation_ts>2014-07-30 23:13:53 -0700</creation_ts>
          <short_desc>REGRESSION: Animations inside RTL multicolumn content is broken</short_desc>
          <delta_ts>2014-07-31 19:22:47 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>135452</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abucur</cc>
    
    <cc>dino</cc>
    
    <cc>hyatt</cc>
    
    <cc>koivisto</cc>
    
    <cc>mihnea</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1025918</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2014-07-30 23:13:53 -0700</bug_when>
    <thetext>When a CSS animation is added to an element inside a RTL multicolumn content,
the accelerated layer is shown at a wrong location.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025919</commentid>
    <comment_count>1</comment_count>
      <attachid>235809</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2014-07-30 23:15:41 -0700</bug_when>
    <thetext>Created attachment 235809
Test case

See how &quot;hello&quot; moves between two locations but it shouldn&apos;t.
It should always show up on the right of &quot;world&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025920</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2014-07-30 23:22:20 -0700</bug_when>
    <thetext>This one appears to be caused by accumulateOffsetTowardsAncestor adding the offset in:

                RenderRegion* region = toRenderMultiColumnFlowThread(parentLayer-&gt;renderer()).physicalTranslationFromFlowToRegion(location);
                if (region)
                    location.moveBy(region-&gt;topLeftLocation() + -parentLayer-&gt;renderBox()-&gt;topLeftLocation());

Removing the last two lines here fixes the bug.

It&apos;s curious how RenderBoxModelObject::adjustedPositionRelativeToOffsetParent has a very similar code:

                    RenderRegion* region = toRenderMultiColumnFlowThread(curr)-&gt;physicalTranslationFromFlowToRegion(referencePoint);
                    if (region)
                        referencePoint.moveBy(region-&gt;topLeftLocation());</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025980</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2014-07-31 08:40:09 -0700</bug_when>
    <thetext>Isn&apos;t this just all RenderLayer content, even without animation? I thought you had an example with opacity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025987</commentid>
    <comment_count>4</comment_count>
    <who name="Andrei Bucur">abucur</who>
    <bug_when>2014-07-31 09:32:50 -0700</bug_when>
    <thetext>This bug has the same cause as https://bugs.webkit.org/show_bug.cgi?id=135452.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026169</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2014-07-31 19:22:47 -0700</bug_when>
    <thetext>Confirmed fixed with http://trac.webkit.org/changeset/171882.  Thanks!

*** This bug has been marked as a duplicate of bug 135452 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>235809</attachid>
            <date>2014-07-30 23:15:41 -0700</date>
            <delta_ts>2014-07-30 23:15:41 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>column-bug-layer.html</filename>
            <type>text/html</type>
            <size>490</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KPHN0eWxlPgpALXdlYmtpdC1rZXlmcmFtZXMg
YmxpbmtlciB7ICAKICBmcm9tIHsgYmFja2dyb3VuZDogcmVkOyBvcGFjaXR5OiAxOyB9CiAgdG8g
eyBiYWNrZ3JvdW5kOiBncmVlbjsgb3BhY2l0eTogMTsgfQp9CgpzcGFuIHsKICAtd2Via2l0LWFu
aW1hdGlvbi1uYW1lOiBibGlua2VyOwogIC13ZWJraXQtYW5pbWF0aW9uLWl0ZXJhdGlvbi1jb3Vu
dDogaW5maW5pdGU7CiAgLXdlYmtpdC1hbmltYXRpb24tZHVyYXRpb246IDFzOwp9Cjwvc3R5bGU+
CjwvaGVhZD4KPGJvZHk+CjxkaXYgZGlyPSJydGwiIHN0eWxlPSJwb3NpdGlvbjphYnNvbHV0ZTsg
bGVmdDogMDsgdG9wOiAwcHg7IHdpZHRoOiA2MDBweDsgaGVpZ2h0OiA2MHB4OwogICAgLXdlYmtp
dC1jb2x1bW4tY291bnQ6IDM7IGZvbnQtc2l6ZTogNTBweDsiPgo8c3Bhbj5oZWxsbzwvc3Bhbj4K
PGJyPgp3b3JsZAo8L2Rpdj4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>