When pasting web archive, width specifiers in srcset attribute change into density...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Oct 2016 20:39:04 +0000 (20:39 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Oct 2016 20:39:04 +0000 (20:39 +0000)
commitcafdf1104699915d2cdb37bda1ad5ec40df39b62
treea87ff8b0eddf79a5ba305cb1781026295ee5e201
parent677fd4e71b1a3aa735056fd72be4d3c755489ac0
When pasting web archive, width specifiers in srcset attribute change into density specifiers
https://bugs.webkit.org/show_bug.cgi?id=164027
<rdar://problem/28964948>

Reviewed by Tim Horton.

Source/WebCore:

Updated editing/pasteboard/img-srcset-copy-paste-canonicalization.html.

* html/HTMLImageElement.cpp:
(WebCore::HTMLImageElement::completeURLsInAttributeValue): Use 'w' when writing out a width
  specifier.

LayoutTests:

* editing/pasteboard/img-srcset-copy-paste-canonicalization-expected.txt: Updated.
* editing/pasteboard/img-srcset-copy-paste-canonicalization.html: Changed to expect a 200w
  specifier to round-trip.
* editing/pasteboard/resources/img-srcset-copy-paste-canonicalization-iframe.html: Changed
  a 1x specifier to 200w.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@207910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/pasteboard/img-srcset-copy-paste-canonicalization-expected.txt
LayoutTests/editing/pasteboard/img-srcset-copy-paste-canonicalization.html
LayoutTests/editing/pasteboard/resources/img-srcset-copy-paste-canonicalization-iframe.html
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLImageElement.cpp