Changeset 207910 in webkit
- Timestamp:
- Oct 26, 2016, 1:39:04 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r207909 r207910 1 2016-10-26 Dan Bernstein <mitz@apple.com> 2 3 When pasting web archive, width specifiers in srcset attribute change into density specifiers 4 https://bugs.webkit.org/show_bug.cgi?id=164027 5 <rdar://problem/28964948> 6 7 Reviewed by Tim Horton. 8 9 * editing/pasteboard/img-srcset-copy-paste-canonicalization-expected.txt: Updated. 10 * editing/pasteboard/img-srcset-copy-paste-canonicalization.html: Changed to expect a 200w 11 specifier to round-trip. 12 * editing/pasteboard/resources/img-srcset-copy-paste-canonicalization-iframe.html: Changed 13 a 1x specifier to 200w. 14 1 15 2016-10-26 Antoine Quint <graouts@apple.com> 2 16 -
trunk/LayoutTests/editing/pasteboard/img-srcset-copy-paste-canonicalization-expected.txt
r171941 r207910 10 10 PASS sourceImageSegments[1] is "2x," 11 11 PASS destinationImageSegments[1] is "2x," 12 PASS sourceImageSegments[3] is " 1x"13 PASS destinationImageSegments[3] is " 1x"12 PASS sourceImageSegments[3] is "200w" 13 PASS destinationImageSegments[3] is "200w" 14 14 PASS successfullyParsed is true 15 15 -
trunk/LayoutTests/editing/pasteboard/img-srcset-copy-paste-canonicalization.html
r171958 r207910 75 75 shouldBe("sourceImageSegments[1]", "\"2x,\""); 76 76 shouldBe("destinationImageSegments[1]", "\"2x,\""); 77 shouldBe("sourceImageSegments[3]", "\" 1x\"");78 shouldBe("destinationImageSegments[3]", "\" 1x\"");77 shouldBe("sourceImageSegments[3]", "\"200w\""); 78 shouldBe("destinationImageSegments[3]", "\"200w\""); 79 79 maybeFinishTest(); 80 80 } -
trunk/LayoutTests/editing/pasteboard/resources/img-srcset-copy-paste-canonicalization-iframe.html
r171941 r207910 5 5 <body onload="window.parent.runTests(window.location.href);"> 6 6 <div id="source" contenteditable="true"> 7 <img id="image" src="../../../fast/hidpi/resources/srcset.png" srcset="../../../fast/hidpi/resources/green-400-px-square.png 2x, ../../../fast/hidpi/resources/green-200-px-square.png 1x">7 <img id="image" src="../../../fast/hidpi/resources/srcset.png" srcset="../../../fast/hidpi/resources/green-400-px-square.png 2x, ../../../fast/hidpi/resources/green-200-px-square.png 200w"> 8 8 </div> 9 9 </body> -
trunk/Source/WebCore/ChangeLog
r207909 r207910 1 2016-10-26 Dan Bernstein <mitz@apple.com> 2 3 When pasting web archive, width specifiers in srcset attribute change into density specifiers 4 https://bugs.webkit.org/show_bug.cgi?id=164027 5 <rdar://problem/28964948> 6 7 Reviewed by Tim Horton. 8 9 Updated editing/pasteboard/img-srcset-copy-paste-canonicalization.html. 10 11 * html/HTMLImageElement.cpp: 12 (WebCore::HTMLImageElement::completeURLsInAttributeValue): Use 'w' when writing out a width 13 specifier. 14 1 15 2016-10-26 Antoine Quint <graouts@apple.com> 2 16 -
trunk/Source/WebCore/html/HTMLImageElement.cpp
r205905 r207910 476 476 result.append(' '); 477 477 result.appendNumber(candidate.resourceWidth); 478 result.append(' x');478 result.append('w'); 479 479 } 480 480 }
Note:
See TracChangeset
for help on using the changeset viewer.