Changeset 83629 in webkit


Ignore:
Timestamp:
Apr 12, 2011 1:31:02 PM (13 years ago)
Author:
hyatt@apple.com
Message:

https://bugs.webkit.org/show_bug.cgi?id=58176

Reviewed by Dan Bernstein.

Inline replaced elements following positioned elements on lines are not rendered. Make sure the
logic for skipping run construction in appendRunsForObject matches the new logic that I added
to findNextLineBreak. If they don't match up, you risk confusing the run construction code and
causing it to not make runs for objects that follow the positioned object on the line.

Source/WebCore:

Added fast/inline/positioned-object-between-replaced-elements.html

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::RenderBlock::appendRunsForObject):

LayoutTests:

  • fast/inline/positioned-object-between-replaced-elements.html: Added.
  • platform/mac/fast/inline/positioned-object-between-replaced-elements-expected.checksum: Added.
  • platform/mac/fast/inline/positioned-object-between-replaced-elements-expected.png: Added.
  • platform/mac/fast/inline/positioned-object-between-replaced-elements-expected.txt: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r83628 r83629  
     12011-04-12  David Hyatt  <hyatt@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=58176
     6       
     7        Inline replaced elements following positioned elements on lines are not rendered. Make sure the
     8        logic for skipping run construction in appendRunsForObject matches the new logic that I added
     9        to findNextLineBreak. If they don't match up, you risk confusing the run construction code and
     10        causing it to not make runs for objects that follow the positioned object on the line.
     11
     12        * fast/inline/positioned-object-between-replaced-elements.html: Added.
     13        * platform/mac/fast/inline/positioned-object-between-replaced-elements-expected.checksum: Added.
     14        * platform/mac/fast/inline/positioned-object-between-replaced-elements-expected.png: Added.
     15        * platform/mac/fast/inline/positioned-object-between-replaced-elements-expected.txt: Added.
     16
    1172011-04-12  Alice Liu  <alice.liu@apple.com>
    218
  • trunk/Source/WebCore/ChangeLog

    r83628 r83629  
     12011-04-12  David Hyatt  <hyatt@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=58176
     6       
     7        Inline replaced elements following positioned elements on lines are not rendered. Make sure the
     8        logic for skipping run construction in appendRunsForObject matches the new logic that I added
     9        to findNextLineBreak. If they don't match up, you risk confusing the run construction code and
     10        causing it to not make runs for objects that follow the positioned object on the line.
     11
     12        Added fast/inline/positioned-object-between-replaced-elements.html
     13       
     14        * rendering/RenderBlockLineLayout.cpp:
     15        (WebCore::RenderBlock::appendRunsForObject):
     16
    1172011-04-12  Alice Liu  <alice.liu@apple.com>
    218
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r83514 r83629  
    126126{
    127127    if (start > end || obj->isFloating() ||
    128         (obj->isPositioned() && !obj->style()->hasAutoLeftAndRight() && !obj->style()->hasAutoTopAndBottom() && !obj->container()->isRenderInline()))
     128        (obj->isPositioned() && !obj->style()->isOriginalDisplayInlineType() && !obj->container()->isRenderInline()))
    129129        return;
    130130
Note: See TracChangeset for help on using the changeset viewer.