Changeset 143993 in webkit
- Timestamp:
- Feb 25, 2013 6:06:12 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r143989 r143993 1 2013-02-25 Xueqing Huang <huangxueqing@baidu.com> 2 3 Flexbox should ignore firstLetter pseudo element. 4 https://bugs.webkit.org/show_bug.cgi?id=105126 5 6 Reviewed by Tony Chang. 7 8 The CSS WG decided that first-line and first-letter should not 9 apply to flex containers. 10 http://dev.w3.org/csswg/css3-flexbox/issues-cr-2012#issue-13 11 12 * css3/flexbox/flexbox-ignore-container-firstLetter-expected.txt: Added. 13 * css3/flexbox/flexbox-ignore-container-firstLetter.html: Added. 14 * css3/flexbox/flexbox-ignore-firstLetter-expected.txt: Added. 15 * css3/flexbox/flexbox-ignore-firstLetter.html: Added. 16 * css3/flexbox/inline-flex-crash-expected.txt: 17 * css3/flexbox/inline-flex-crash2-expected.txt: 18 1 19 2013-02-25 James Simonsen <simonjam@chromium.org> 2 20 -
trunk/LayoutTests/css3/flexbox/inline-flex-crash-expected.txt
r125262 r143993 1 1 This test passes if it doesn't crash. 2 2 3 AA 4 5 3 AA -
trunk/LayoutTests/css3/flexbox/inline-flex-crash2-expected.txt
r125262 r143993 1 1 This test passes if it doesn't crash. 2 2 3 AAAA 4 5 A 3 AAAAA -
trunk/Source/WebCore/ChangeLog
r143990 r143993 1 2013-02-25 Xueqing Huang <huangxueqing@baidu.com> 2 3 Flexbox should ignore firstLetter pseudo element. 4 https://bugs.webkit.org/show_bug.cgi?id=105126 5 6 Reviewed by Tony Chang. 7 8 The CSS WG decided that first-line and first-letter should not 9 apply to flex containers. 10 http://dev.w3.org/csswg/css3-flexbox/issue-cr-2012#issue-13 11 12 tests: 13 css3/flexbox/flexbox-ignore-firstLetter.html 14 css3/flexbox/flexbox-ignore-container-firstLetter.html 15 16 * rendering/RenderBlock.cpp: 17 (WebCore::findFirstLetterBlock): 18 1 19 2013-02-25 Simon Fraser <simon.fraser@apple.com> 2 20 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r143950 r143993 6490 6490 while (true) { 6491 6491 bool canHaveFirstLetterRenderer = firstLetterBlock->style()->hasPseudoStyle(FIRST_LETTER) 6492 && firstLetterBlock->canHaveGeneratedChildren() ;6492 && firstLetterBlock->canHaveGeneratedChildren() && !firstLetterBlock->isFlexibleBox(); 6493 6493 if (canHaveFirstLetterRenderer) 6494 6494 return firstLetterBlock; … … 6496 6496 RenderObject* parentBlock = firstLetterBlock->parent(); 6497 6497 if (firstLetterBlock->isReplaced() || !parentBlock || parentBlock->firstChild() != firstLetterBlock || 6498 !parentBlock->isBlockFlow() )6498 !parentBlock->isBlockFlow() || parentBlock->isFlexibleBox()) 6499 6499 return 0; 6500 6500 firstLetterBlock = parentBlock;
Note: See TracChangeset
for help on using the changeset viewer.