Title: [226988] tags/Safari-606.1.1.1/Source/WebCore
- Revision
- 226988
- Author
- [email protected]
- Date
- 2018-01-16 11:26:08 -0800 (Tue, 16 Jan 2018)
Log Message
Cherry-pick r226915. rdar://problem/36480797
Modified Paths
Diff
Modified: tags/Safari-606.1.1.1/Source/WebCore/ChangeLog (226987 => 226988)
--- tags/Safari-606.1.1.1/Source/WebCore/ChangeLog 2018-01-16 19:26:06 UTC (rev 226987)
+++ tags/Safari-606.1.1.1/Source/WebCore/ChangeLog 2018-01-16 19:26:08 UTC (rev 226988)
@@ -1,5 +1,22 @@
2018-01-16 Jason Marcell <[email protected]>
+ Cherry-pick r226915. rdar://problem/36480797
+
+ 2018-01-12 Wenson Hsieh <[email protected]>
+
+ 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):
+
+2018-01-16 Jason Marcell <[email protected]>
+
Cherry-pick r226796. rdar://problem/35947650
2018-01-11 Antoine Quint <[email protected]>
Modified: tags/Safari-606.1.1.1/Source/WebCore/html/HTMLAttachmentElement.cpp (226987 => 226988)
--- tags/Safari-606.1.1.1/Source/WebCore/html/HTMLAttachmentElement.cpp 2018-01-16 19:26:06 UTC (rev 226987)
+++ tags/Safari-606.1.1.1/Source/WebCore/html/HTMLAttachmentElement.cpp 2018-01-16 19:26:08 UTC (rev 226988)
@@ -285,6 +285,7 @@
image->setAttributeWithoutSynchronization(srcAttr, DOMURL::createObjectURL(document(), *m_file));
image->setAttributeWithoutSynchronization(draggableAttr, AtomicString("false"));
image->setInlineStyleProperty(CSSPropertyDisplay, CSSValueInline, true);
+ image->setInlineStyleProperty(CSSPropertyMaxWidth, 100, CSSPrimitiveValue::UnitType::CSS_PERCENTAGE, true);
}
} else if (MIMETypeRegistry::isSupportedMediaMIMEType(mimeType)) {
@@ -293,6 +294,7 @@
video->setAttributeWithoutSynchronization(srcAttr, DOMURL::createObjectURL(document(), *m_file));
video->setAttributeWithoutSynchronization(controlsAttr, emptyString());
video->setInlineStyleProperty(CSSPropertyDisplay, CSSValueInline, true);
+ video->setInlineStyleProperty(CSSPropertyMaxWidth, 100, CSSPrimitiveValue::UnitType::CSS_PERCENTAGE, true);
}
}
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes