Title: [232347] trunk/Source/WebCore
- Revision
- 232347
- Author
- [email protected]
- Date
- 2018-05-31 07:59:37 -0700 (Thu, 31 May 2018)
Log Message
[LFC] Margin box is border box + margins.
https://bugs.webkit.org/show_bug.cgi?id=186124
Reviewed by Antti Koivisto.
* layout/displaytree/DisplayBox.cpp:
(WebCore::Display::Box::marginBox const):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (232346 => 232347)
--- trunk/Source/WebCore/ChangeLog 2018-05-31 14:58:24 UTC (rev 232346)
+++ trunk/Source/WebCore/ChangeLog 2018-05-31 14:59:37 UTC (rev 232347)
@@ -1,5 +1,15 @@
2018-05-31 Zalan Bujtas <[email protected]>
+ [LFC] Margin box is border box + margins.
+ https://bugs.webkit.org/show_bug.cgi?id=186124
+
+ Reviewed by Antti Koivisto.
+
+ * layout/displaytree/DisplayBox.cpp:
+ (WebCore::Display::Box::marginBox const):
+
+2018-05-31 Zalan Bujtas <[email protected]>
+
[LFC] Add quirks mode setter/getting to LayoutContext
https://bugs.webkit.org/show_bug.cgi?id=186122
Modified: trunk/Source/WebCore/layout/displaytree/DisplayBox.cpp (232346 => 232347)
--- trunk/Source/WebCore/layout/displaytree/DisplayBox.cpp 2018-05-31 14:58:24 UTC (rev 232346)
+++ trunk/Source/WebCore/layout/displaytree/DisplayBox.cpp 2018-05-31 14:59:37 UTC (rev 232347)
@@ -55,10 +55,10 @@
ASSERT(m_hasValidMargin);
auto marginBox = borderBox();
- marginBox.shiftLeftTo(marginBox.left() + m_margin.left);
- marginBox.shiftTopTo(marginBox.top() + m_margin.top);
- marginBox.shiftRightTo(marginBox.right() - m_margin.right);
- marginBox.shiftBottomTo(marginBox.bottom() - m_margin.bottom);
+ marginBox.shiftLeftTo(marginBox.left() - m_margin.left);
+ marginBox.shiftTopTo(marginBox.top() - m_margin.top);
+ marginBox.shiftRightTo(marginBox.right() + m_margin.right);
+ marginBox.shiftBottomTo(marginBox.bottom() + m_margin.bottom);
return marginBox;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes