Changeset 118617 in webkit
- Timestamp:
- May 26, 2012, 5:43:12 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/compositing/geometry/flipped-blocks-inline-mapping-expected.txt (added)
-
LayoutTests/compositing/geometry/flipped-blocks-inline-mapping.html (added)
-
LayoutTests/platform/mac/Skipped (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderGeometryMap.cpp (modified) (1 diff)
-
Source/WebCore/rendering/RenderInline.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r118613 r118617 1 2012-05-26 Simon Fraser <simon.fraser@apple.com> 2 3 fast/block/inline-children-root-linebox-crash.html asserts after r118567 4 https://bugs.webkit.org/show_bug.cgi?id=87544 5 6 Reviewed by Darin Adler. 7 8 Remove fast/block/inline-children-root-linebox-crash.html from the skipped 9 list. 10 11 New, more complex writing mode flipping test with compositing. 12 13 * compositing/geometry/flipped-blocks-inline-mapping-expected.txt: Added. 14 * compositing/geometry/flipped-blocks-inline-mapping.html: Added. 15 * platform/mac/Skipped: 16 1 17 2012-05-26 David Barton <dbarton@mathscribe.com> 2 18 -
trunk/LayoutTests/platform/mac/Skipped
r118602 r118617 868 868 fast/canvas/webgl/tex-image-and-sub-image-2d-with-video-rgba4444.html 869 869 fast/canvas/webgl/tex-image-and-sub-image-2d-with-video-rgba5551.html 870 871 # https://bugs.webkit.org/show_bug.cgi?id=87544872 fast/block/inline-children-root-linebox-crash.html873 -
trunk/Source/WebCore/ChangeLog
r118616 r118617 1 2012-05-26 Simon Fraser <simon.fraser@apple.com> 2 3 fast/block/inline-children-root-linebox-crash.html asserts after r118567 4 https://bugs.webkit.org/show_bug.cgi?id=87544 5 6 Reviewed by Darin Adler. 7 8 RenderInline::offsetFromContainer() set offsetDependsOnPoint to true based 9 on the container's flipped writing mode. However, offsetFromContainer() would 10 then overwrite that, since it only checked for columns. 11 12 Fix by having RenderInline::offsetFromContainer() check for flipping on 13 the container. This fixes the assertion. 14 15 The new testcase exercises fixes another issue; unlike mapLocalToAbsolute(), 16 RenderGeometryMap::absoluteRect() didn't pass the rect center point through 17 the mapping, which resulted in a different result in some flipping cases. 18 19 Test: compositing/geometry/flipped-blocks-inline-mapping.html 20 21 * rendering/RenderGeometryMap.cpp: 22 (WebCore::RenderGeometryMap::absoluteRect): 23 * rendering/RenderInline.cpp: 24 (WebCore::RenderInline::offsetFromContainer): 25 (WebCore::RenderInline::pushMappingToContainer): 26 1 27 2012-05-26 Geoffrey Garen <ggaren@apple.com> 2 28 -
trunk/Source/WebCore/rendering/RenderGeometryMap.cpp
r118567 r118617 115 115 result.move(m_accumulatedOffset); 116 116 } else { 117 TransformState transformState(TransformState::ApplyTransformDirection, rect );117 TransformState transformState(TransformState::ApplyTransformDirection, rect.center(), rect); 118 118 mapToAbsolute(transformState); 119 119 result = transformState.lastPlanarQuad().boundingBox(); -
trunk/Source/WebCore/rendering/RenderInline.cpp
r118567 r118617 1081 1081 1082 1082 if (offsetDependsOnPoint) 1083 *offsetDependsOnPoint = container->hasColumns() ;1083 *offsetDependsOnPoint = container->hasColumns() || (container->isBox() && container->style()->isFlippedBlocksWritingMode()); 1084 1084 1085 1085 return offset; … … 1143 1143 return 0; 1144 1144 1145 bool offsetDependsOnPoint = false;1146 1147 if (container->isBox() && container->style()->isFlippedBlocksWritingMode())1148 offsetDependsOnPoint = true;1149 1150 1145 LayoutSize adjustmentForSkippedAncestor; 1151 1146 if (ancestorSkipped) { … … 1155 1150 } 1156 1151 1152 bool offsetDependsOnPoint = false; 1157 1153 LayoutSize containerOffset = offsetFromContainer(container, LayoutPoint(), &offsetDependsOnPoint); 1158 1154
Note:
See TracChangeset
for help on using the changeset viewer.