Changeset 147850 in webkit
- Timestamp:
- Apr 6, 2013 12:48:51 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r147831 r147850 1 2013-04-06 Robert Hogan <robert@webkit.org> 2 3 REGRESSION(r142152): Text wraps in menu 4 https://bugs.webkit.org/show_bug.cgi?id=113706 5 6 Reviewed by David Hyatt. 7 8 * fast/inline/inline-with-empty-inline-children-expected.txt: 9 * fast/inline/inline-with-empty-inline-children.html: 10 1 11 2013-04-05 Hans Muller <hmuller@adobe.com> 2 12 -
trunk/LayoutTests/fast/inline/inline-with-empty-inline-children-expected.txt
r147667 r147850 1 https://bugs.webkit.org/show_bug.cgi?id=95772: There should be s ixgreen bars below with a PASS in each.1 https://bugs.webkit.org/show_bug.cgi?id=95772: There should be seven green bars below with a PASS in each. 2 2 3 3 PASS … … 7 7 PASS 8 8 PASS 9 Words 10 PASS 9 11 -
trunk/LayoutTests/fast/inline/inline-with-empty-inline-children.html
r147667 r147850 5 5 .block { display: block; background: green; } 6 6 .inline { display: inline; margin-left: 40px; font: 30px/1 Ahem;} 7 span { width: 50%; background: white; }7 .white-span { width: 50%; background: white; } 8 8 .absolute { position: absolute; } 9 9 .float { float: left; } 10 .inline-span { display: inline-block; } 10 11 </style> 11 12 <script src="../../resources/check-layout.js"></script> 12 13 </head> 13 14 <body> 14 <p> https://bugs.webkit.org/show_bug.cgi?id=95772: There should be s ixgreen bars below with a PASS in each. </p>15 <p> https://bugs.webkit.org/show_bug.cgi?id=95772: There should be seven green bars below with a PASS in each. </p> 15 16 <div class="block"> 16 <div class="inline" data-expected-height="30"> <span class="absolute "></span> <span class="absolute"></span> </div>17 <div class="inline" data-expected-height="30"> <span class="absolute white-span"></span> <span class="absolute white-span"></span> </div> 17 18 </div> 18 19 <div class="block"> 19 <div class="inline" data-expected-height="30"><span class="absolute "></span><span class="absolute"></span></div>20 <div class="inline" data-expected-height="30"><span class="absolute white-span"></span><span class="absolute"></span></div> 20 21 </div> 21 22 <div class="block"> 22 <div class="inline" data-expected-height="30"><span class="float "></span><span class="float"></span></div>23 <div class="inline" data-expected-height="30"><span class="float white-span"></span><span class="float white-span"></span></div> 23 24 </div> 24 25 <div class="block"> 25 <div class="inline" data-expected-height="30"> <span class="float "></span> <span class="float"></span></div>26 <div class="inline" data-expected-height="30"> <span class="float white-span"></span> <span class="float white-span"></span></div> 26 27 </div> 27 28 <div class="block"> 28 <div class="inline" data-expected-height="30"><span ></span><span></span></div>29 <div class="inline" data-expected-height="30"><span class="white-span"></span><span class="white-span"></span></div> 29 30 </div> 30 31 <div class="block"> 31 <div class="inline" data-expected-height="30"> <span></span> <span></span></div> 32 <div class="inline" data-expected-height="30"> <span class="white-span"></span> <span class="white-span"></span></div> 33 </div> 34 <div class="block"> 35 <span class="inline-span" data-expected-height="30"><div class="inline"> <div class="float"> Words </div></div></span> 32 36 </div> 33 37 <script> 34 38 checkLayout('body > div > div') 39 checkLayout('body > div > span') 35 40 </script> 36 41 </body> -
trunk/Source/WebCore/ChangeLog
r147846 r147850 1 2013-04-06 Robert Hogan <robert@webkit.org> 2 3 REGRESSION(r142152): Text wraps in menu 4 https://bugs.webkit.org/show_bug.cgi?id=113706 5 6 Reviewed by David Hyatt. 7 8 * rendering/RenderBlockLineLayout.cpp: 9 (WebCore::inlineLogicalWidth): Empty inline elements add their inline border/padding/margin to the width of the 10 line when we iterate through them in nextLineBreak(), so no need to add them again here when climbing back up 11 from their first child looking for border/padding/margin to add. (An empty inline element can have floating children.) 12 1 13 2013-04-06 Geoffrey Garen <ggaren@apple.com> 2 14 -
trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp
r147758 r147850 333 333 LayoutUnit extraWidth = 0; 334 334 RenderObject* parent = child->parent(); 335 while (parent->isRenderInline() && lineDepth++ < cMaxLineDepth) { 335 // Empty inline parents have added their inline border, padding and margin to the line already. 336 while (parent->isRenderInline() && !isEmptyInline(parent) && lineDepth++ < cMaxLineDepth) { 336 337 RenderInline* parentAsRenderInline = toRenderInline(parent); 337 338 if (!isEmptyInline(parentAsRenderInline)) {
Note: See TracChangeset
for help on using the changeset viewer.