Changeset 148203 in webkit
- Timestamp:
- Apr 11, 2013 7:51:08 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r148196 r148203 1 2013-04-11 Zalan Bujtas <zalan@apple.com> 2 3 Parent box with background-size auto and gradient image does not get properly repainted when child box is resized. 4 https://bugs.webkit.org/show_bug.cgi?id=114424 5 6 Reviewed by Antti Koivisto. 7 8 * fast/repaint/background-shorthand-with-gradient-and-height-changes-expected.txt: 9 * fast/repaint/background-shorthand-with-gradient-and-height-changes.html: 10 1 11 2013-04-11 Zoltan Arvai <zarvai@inf.u-szeged.hu> 2 12 -
trunk/LayoutTests/fast/repaint/background-shorthand-with-gradient-and-height-changes-expected.txt
r147303 r148203 4 4 5 5 6 PASS repaintRects.indexOf('500') is not -1 6 PASS repaintRects.indexOf('28 84') is not -1 7 PASS repaintRects.indexOf('8 84') is not -1 7 8 PASS successfullyParsed is true 8 9 -
trunk/LayoutTests/fast/repaint/background-shorthand-with-gradient-and-height-changes.html
r147303 r148203 5 5 6 6 <style> 7 #outer { 8 padding-top: 200px; 7 #wrapper { 8 width: 40px; 9 } 10 11 #outer-background-shorthand { 12 width: 20px; 13 padding-top: 20px; 14 float:right; 9 15 background:-webkit-gradient( 10 16 linear, … … 15 21 } 16 22 17 #inner { 18 height: 100px; 23 #outer-background-size-auto { 24 width: 20px; 25 padding-top: 20px; 26 background-size: auto; 27 background-image: -webkit-gradient( 28 linear, 29 left top, 30 left bottom, 31 color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1)) 32 ); 33 } 34 35 .inner { 36 height: 10px; 19 37 } 20 38 </style> … … 25 43 function start() { 26 44 window.setTimeout(function() { 27 document.getElementById('inner').style.height = 300 + 'px'; 45 document.getElementsByClassName('inner')[0].style.height = 200 + 'px'; 46 document.getElementsByClassName('inner')[1].style.height = 200 + 'px'; 47 28 48 window.setTimeout(logRepaints, 200); 29 49 }, 0); … … 42 62 repaintRects = window.internals.repaintRectsAsText(document); 43 63 window.internals.stopTrackingRepaints(document); 44 shouldNotBe("repaintRects.indexOf('500')", "-1"); 64 shouldNotBe("repaintRects.indexOf('28 84')", "-1"); 65 shouldNotBe("repaintRects.indexOf('8 84')", "-1"); 45 66 finishJSTest(); 46 67 } … … 49 70 50 71 <body onload='start();'> 51 <div id='outer'> 52 <div id='inner'> 72 <div id='wrapper'> 73 <div id='outer-background-shorthand'> 74 <div class='inner'> 75 </div> 76 </div> 77 <div id='outer-background-size-auto'> 78 <div class='inner'> 79 </div> 53 80 </div> 54 81 </div> -
trunk/Source/WebCore/ChangeLog
r148202 r148203 1 2013-04-11 Zalan Bujtas <zalan@apple.com> 2 3 Parent box with background-size auto and gradient image does not get properly repainted when child box is resized. 4 https://bugs.webkit.org/show_bug.cgi?id=114424 5 6 Reviewed by Antti Koivisto. 7 8 Initiate full repaint on fill layer, when the image is generated and the background 9 property defines auto size. 10 http://www.w3.org/TR/css3-background/#background-size 11 'If the image has neither an intrinsic width nor an intrinsic height, its size is determined as for 'contain'.' 12 13 Extended fast/repaint/background-shorthand-with-gradient-and-height-changes.html 14 to cover this case too. 15 16 * rendering/RenderObject.cpp: 17 (WebCore::mustRepaintFillLayers): 18 1 19 2013-04-11 ChangSeok Oh <changseok.oh@collabora.com> 2 20 -
trunk/Source/WebCore/rendering/RenderObject.cpp
r147871 r148203 836 836 837 837 if (sizeType == SizeLength) { 838 if (layer->sizeLength().width().isPercent() || layer->sizeLength().height().isPercent()) 838 LengthSize size = layer->sizeLength(); 839 if (size.width().isPercent() || size.height().isPercent()) 840 return true; 841 // If the image has neither an intrinsic width nor an intrinsic height, its size is determined as for 'contain'. 842 if ((size.width().isAuto() || size.height().isAuto()) && img->isGeneratedImage()) 839 843 return true; 840 844 } else if (img->usesImageContainerSize())
Note: See TracChangeset
for help on using the changeset viewer.