Changeset 117537 in webkit


Ignore:
Timestamp:
May 17, 2012 9:33:59 PM (12 years ago)
Author:
mitz@apple.com
Message:

<rdar://problem/11419933> Problems with flipped writing modes and compositing
https://bugs.webkit.org/show_bug.cgi?id=86032

Reviewed by Anders Carlsson.

Source/WebCore:

Test: compositing/bounds-in-flipped-writing-mode.html

  • rendering/RenderLayer.cpp:

(WebCore::RenderLayer::calculateLayerBounds): Apply a writing-mode flip to the bounding box
if needed.

LayoutTests:

  • compositing/bounds-in-flipped-writing-mode-expected.txt: Added.
  • compositing/bounds-in-flipped-writing-mode.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r117531 r117537  
     12012-05-17  Dan Bernstein  <mitz@apple.com>
     2
     3        <rdar://problem/11419933> Problems with flipped writing modes and compositing
     4        https://bugs.webkit.org/show_bug.cgi?id=86032
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * compositing/bounds-in-flipped-writing-mode-expected.txt: Added.
     9        * compositing/bounds-in-flipped-writing-mode.html: Added.
     10
    1112012-05-17  Peter Kasting  <pkasting@google.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r117536 r117537  
     12012-05-17  Dan Bernstein  <mitz@apple.com>
     2
     3        <rdar://problem/11419933> Problems with flipped writing modes and compositing
     4        https://bugs.webkit.org/show_bug.cgi?id=86032
     5
     6        Reviewed by Anders Carlsson.
     7
     8        Test: compositing/bounds-in-flipped-writing-mode.html
     9
     10        * rendering/RenderLayer.cpp:
     11        (WebCore::RenderLayer::calculateLayerBounds): Apply a writing-mode flip to the bounding box
     12        if needed.
     13
    1142012-05-17  Kentaro Hara  <haraken@chromium.org>
    215
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r117162 r117537  
    41504150    if (!layer->isSelfPaintingLayer())
    41514151        return IntRect();
    4152    
     4152
    41534153    LayoutRect boundingBoxRect = layer->localBoundingBox();
     4154    if (layer->renderer()->isBox())
     4155        layer->renderBox()->flipForWritingMode(boundingBoxRect);
     4156    else
     4157        layer->renderer()->containingBlock()->flipForWritingMode(boundingBoxRect);
     4158
    41544159    if (layer->renderer()->isRoot()) {
    41554160        // If the root layer becomes composited (e.g. because some descendant with negative z-index is composited),
Note: See TracChangeset for help on using the changeset viewer.