Changeset 120477 in webkit
- Timestamp:
- Jun 15, 2012 10:57:57 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r120476 r120477 1 2012-06-15 Abhishek Arya <inferno@chromium.org> 2 3 Cleanup empty anonymous block continuation. 4 https://bugs.webkit.org/show_bug.cgi?id=74976 5 6 Reviewed by Julien Chaffraix. 7 8 * fast/inline/inline-empty-block-continuation-remove-expected.html: Added. 9 * fast/inline/inline-empty-block-continuation-remove.html: Added. 10 and a bunch of rebaselines in existing tests. 11 1 12 2012-06-15 Zan Dobersek <zandobersek@gmail.com> 2 13 -
trunk/LayoutTests/platform/mac/editing/deleting/delete-3800834-fix-expected.txt
r96264 r120477 32 32 RenderBody {BODY} at (8,8) size 784x584 33 33 RenderBlock {DIV} at (0,0) size 784x56 [border: (2px solid #FF0000)] 34 RenderBlock (anonymous) at (14,14) size 756x28 35 RenderInline {SPAN} at (0,0) size 37x28 36 RenderText {#text} at (0,0) size 37x28 37 text run at (0,0) width 37: "Foo" 38 RenderBlock (anonymous) at (14,42) size 756x0 39 RenderBlock (anonymous) at (14,42) size 756x0 40 RenderInline {SPAN} at (0,0) size 0x0 34 RenderInline {SPAN} at (0,0) size 37x28 35 RenderText {#text} at (14,14) size 37x28 36 text run at (14,14) width 37: "Foo" 37 RenderInline {SPAN} at (0,0) size 0x28 41 38 caret: position 3 of child 0 {#text} of child 1 {SPAN} of child 1 {DIV} of body -
trunk/LayoutTests/platform/mac/fast/dynamic/011-expected.txt
r63403 r120477 4 4 RenderBlock {HTML} at (0,0) size 800x600 5 5 RenderBody {BODY} at (8,8) size 784x584 6 RenderBlock (anonymous) at (0,0) size 784x 06 RenderBlock (anonymous) at (0,0) size 784x36 7 7 RenderInline {SPAN} at (0,0) size 0x0 8 RenderBlock (anonymous) at (0,0) size 784x09 RenderBlock (anonymous) at (0,0) size 784x3610 8 RenderInline {SPAN} at (0,0) size 781x36 11 9 RenderInline {SPAN} at (0,0) size 781x36 -
trunk/LayoutTests/platform/mac/fast/forms/formmove3-expected.txt
r66306 r120477 7 7 RenderInline {A} at (0,0) size 0x0 8 8 RenderText {#text} at (0,0) size 0x0 9 RenderBlock (anonymous) at (0,0) size 784x010 RenderBlock (anonymous) at (0,0) size 784x011 9 RenderInline {A} at (0,0) size 0x0 12 10 RenderBlock {DIV} at (0,0) size 784x28 -
trunk/LayoutTests/platform/mac/fast/forms/preserveFormDuringResidualStyle-expected.txt
r66306 r120477 7 7 RenderInline {FONT} at (0,0) size 0x0 8 8 RenderText {#text} at (0,0) size 0x0 9 RenderBlock (anonymous) at (0,0) size 784x010 RenderBlock (anonymous) at (0,0) size 784x011 9 RenderInline {FONT} at (0,0) size 0x0 12 10 RenderBlock {CENTER} at (0,0) size 784x25 -
trunk/LayoutTests/platform/mac/fast/invalid/001-expected.txt
r25970 r120477 6 6 RenderBlock (anonymous) at (0,0) size 784x0 7 7 RenderInline {B} at (0,0) size 0x0 8 RenderBlock (anonymous) at (0,0) size 784x09 RenderBlock (anonymous) at (0,0) size 784x010 8 RenderInline {B} at (0,0) size 0x0 11 9 RenderBlock {P} at (0,0) size 784x18 -
trunk/LayoutTests/platform/mac/fast/invalid/003-expected.txt
r64954 r120477 9 9 RenderText {#text} at (0,0) size 89x18 10 10 text run at (0,0) width 89: "Italic and Red" 11 RenderBlock (anonymous) at (0,18) size 784x0 [color=#FF0000] 12 RenderBlock (anonymous) at (0,18) size 784x0 13 RenderInline {FONT} at (0,0) size 0x0 [color=#FF0000] 14 RenderInline {I} at (0,0) size 0x0 15 RenderInline {I} at (0,0) size 0x0 11 RenderInline {FONT} at (0,0) size 0x18 [color=#FF0000] 12 RenderInline {I} at (0,0) size 0x18 13 RenderInline {I} at (0,0) size 0x18 16 14 RenderBlock (anonymous) at (0,34) size 784x18 17 15 RenderBlock {P} at (0,0) size 784x18 … … 40 38 RenderInline {I} at (0,0) size 0x0 41 39 RenderText {#text} at (0,0) size 0x0 42 RenderBlock (anonymous) at (0,136) size 784x0 [color=#FF0000]43 RenderBlock (anonymous) at (0,136) size 784x044 40 RenderInline {FONT} at (0,0) size 0x0 [color=#FF0000] 45 41 RenderInline {I} at (0,0) size 0x0 -
trunk/LayoutTests/platform/mac/fast/invalid/004-expected.txt
r64712 r120477 19 19 RenderText {#text} at (0,0) size 0x0 20 20 RenderInline {B} at (0,0) size 0x0 21 RenderBlock (anonymous) at (0,206) size 784x022 RenderBlock (anonymous) at (0,206) size 784x023 21 RenderInline {B} at (0,0) size 0x0 24 22 RenderBlock {P} at (0,206) size 784x18 -
trunk/LayoutTests/platform/mac/fast/invalid/007-expected.txt
r64712 r120477 7 7 RenderInline {LABEL} at (0,0) size 0x0 8 8 RenderInline {A} at (0,0) size 0x0 9 RenderBlock (anonymous) at (0,0) size 784x010 RenderBlock (anonymous) at (0,0) size 784x011 9 RenderInline {LABEL} at (0,0) size 0x0 12 10 RenderInline {A} at (0,0) size 0x0 -
trunk/LayoutTests/platform/mac/fast/invalid/019-expected.txt
r64954 r120477 7 7 RenderInline {B} at (0,0) size 0x0 8 8 RenderInline {NOBR} at (0,0) size 0x0 9 RenderBlock (anonymous) at (0,0) size 784x010 RenderBlock (anonymous) at (0,0) size 784x011 9 RenderInline {B} at (0,0) size 0x0 12 10 RenderInline {NOBR} at (0,0) size 0x0 -
trunk/LayoutTests/platform/mac/fast/multicol/span/clone-anonymous-block-non-inline-child-crash-expected.txt
r109192 r120477 10 10 RenderText {#text} at (0,0) size 102x18 11 11 text run at (0,0) width 102: "Some inline text" 12 RenderInline {LABEL} at (0,0) size 0x0 12 13 RenderBlock (anonymous) at (5,23) size 379x285 13 14 RenderBlock {SUMMARY} at (0,0) size 379x285 -
trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug647-expected.txt
r78910 r120477 19 19 RenderInline {FONT} at (0,0) size 0x0 20 20 RenderText {#text} at (0,0) size 0x0 21 RenderBlock (anonymous) at (2,2) size 90x022 RenderBlock (anonymous) at (2,2) size 90x023 21 RenderInline {FONT} at (0,0) size 0x0 24 22 RenderBlock {CENTER} at (2,2) size 90x13 -
trunk/Source/WebCore/ChangeLog
r120475 r120477 1 2012-06-15 Abhishek Arya <inferno@chromium.org> 2 3 Cleanup empty anonymous block continuation. 4 https://bugs.webkit.org/show_bug.cgi?id=74976 5 6 Reviewed by Julien Chaffraix. 7 8 Fix rendering on http://docs.google.com/demo. 9 10 Test: fast/inline/inline-empty-block-continuation-remove.html 11 12 * rendering/RenderBlock.cpp: 13 (WebCore::RenderBlock::removeChild): If we are removing our last child, 14 and are an anonymous block which is part of a continuation chain, then 15 we need to first fix our continuation chain by setting our previous 16 continuation renderer to point to the next continuation renderer. Then, 17 we reset our continuation pointer and destroy ourselves. Since we no 18 longer are part of continuation chain, we will be removed and previous 19 and next anonymous block will be merged automatically. 20 * rendering/RenderObject.cpp: 21 (WebCore::RenderObject::previousInPreOrder): add an argument to previousInOrder 22 - stayWithin. 23 (WebCore): 24 * rendering/RenderObject.h: 25 (RenderObject): 26 1 27 2012-06-15 Taiju Tsuiki <tzik@chromium.org> 2 28 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r120265 r120477 1234 1234 if (childrenInline()) 1235 1235 deleteLineBoxTree(); 1236 1237 // If we are an empty anonymous block in the continuation chain, 1238 // we need to remove ourself and fix the continuation chain. 1239 if (!beingDestroyed() && isAnonymousBlockContinuation()) { 1240 for (RenderObject* curr = this; curr; curr = curr->previousInPreOrder(parent())) { 1241 if (curr->virtualContinuation() != this) 1242 continue; 1243 1244 // Found our previous continuation. We just need to point it to 1245 // |this|'s next continuation. 1246 RenderBoxModelObject* nextContinuation = continuation(); 1247 if (curr->isRenderInline()) 1248 toRenderInline(curr)->setContinuation(nextContinuation); 1249 else if (curr->isRenderBlock()) 1250 toRenderBlock(curr)->setContinuation(nextContinuation); 1251 else 1252 ASSERT_NOT_REACHED(); 1253 1254 break; 1255 } 1256 setContinuation(0); 1257 destroy(); 1258 } 1236 1259 } 1237 1260 } -
trunk/Source/WebCore/rendering/RenderObject.cpp
r120119 r120477 388 388 389 389 return parent(); 390 } 391 392 RenderObject* RenderObject::previousInPreOrder(const RenderObject* stayWithin) const 393 { 394 if (this == stayWithin) 395 return 0; 396 397 return previousInPreOrder(); 390 398 } 391 399 -
trunk/Source/WebCore/rendering/RenderObject.h
r120119 r120477 194 194 RenderObject* nextInPreOrderAfterChildren(const RenderObject* stayWithin) const; 195 195 RenderObject* previousInPreOrder() const; 196 RenderObject* previousInPreOrder(const RenderObject* stayWithin) const; 196 197 RenderObject* childAt(unsigned) const; 197 198
Note: See TracChangeset
for help on using the changeset viewer.