Large in-place attachment elements cause the document width to expand when inserted
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Jan 2018 22:00:52 +0000 (22:00 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Jan 2018 22:00:52 +0000 (22:00 +0000)
commitcef5c46e72242a3916ee3444d554165a3c7dd7e0
tree7446d5f3df11b74cdc71d2f532d260b9d266e6f4
parent7dc8e5812c38a27f207ffd04a6844b847c2719dc
Large in-place attachment elements cause the document width to expand when inserted
https://bugs.webkit.org/show_bug.cgi?id=181614

Reviewed by Dan Bernstein.

Make in-place images and videos have a max-width of 100%, so that large attachments aren't inserted with full
display size, causing the document and viewport width to expand.

* html/HTMLAttachmentElement.cpp:
(WebCore::HTMLAttachmentElement::populateShadowRootIfNecessary):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226915 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLAttachmentElement.cpp