Title: [237291] trunk/Source/WebCore
- Revision
- 237291
- Author
- [email protected]
- Date
- 2018-10-19 10:00:12 -0700 (Fri, 19 Oct 2018)
Log Message
[LFC][IFC] Inline replaced width should default to 300px only if width is auto.
https://bugs.webkit.org/show_bug.cgi?id=190722
Reviewed by Antti Koivisto.
See #5
// 5. Otherwise, if 'width' has a computed value of 'auto', but none of the conditions above are met, then the used value of 'width' becomes 300px.
* layout/FormattingContextGeometry.cpp:
(WebCore::Layout::FormattingContext::Geometry::inlineReplacedWidthAndMargin):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (237290 => 237291)
--- trunk/Source/WebCore/ChangeLog 2018-10-19 16:58:05 UTC (rev 237290)
+++ trunk/Source/WebCore/ChangeLog 2018-10-19 17:00:12 UTC (rev 237291)
@@ -1,5 +1,19 @@
2018-10-19 Zalan Bujtas <[email protected]>
+ [LFC][IFC] Inline replaced width should default to 300px only if width is auto.
+ https://bugs.webkit.org/show_bug.cgi?id=190722
+
+ Reviewed by Antti Koivisto.
+
+ See #5
+
+ // 5. Otherwise, if 'width' has a computed value of 'auto', but none of the conditions above are met, then the used value of 'width' becomes 300px.
+
+ * layout/FormattingContextGeometry.cpp:
+ (WebCore::Layout::FormattingContext::Geometry::inlineReplacedWidthAndMargin):
+
+2018-10-19 Zalan Bujtas <[email protected]>
+
[LFC][IFC] Add inline runs to showLayoutTree
https://bugs.webkit.org/show_bug.cgi?id=190718
Modified: trunk/Source/WebCore/layout/FormattingContextGeometry.cpp (237290 => 237291)
--- trunk/Source/WebCore/layout/FormattingContextGeometry.cpp 2018-10-19 16:58:05 UTC (rev 237290)
+++ trunk/Source/WebCore/layout/FormattingContextGeometry.cpp 2018-10-19 17:00:12 UTC (rev 237291)
@@ -887,7 +887,7 @@
} else if (!width && replaced->hasIntrinsicWidth()) {
// #4
width = replaced->intrinsicWidth();
- } else {
+ } else if (!width) {
// #5
width = { 300 };
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes