Title: [269037] trunk/Source/WebCore
Revision
269037
Author
[email protected]
Date
2020-10-27 06:28:41 -0700 (Tue, 27 Oct 2020)

Log Message

RenderStyle::resetPadding sets incorrect computed value (auto)
https://bugs.webkit.org/show_bug.cgi?id=218211

Reviewed by Antti Koivisto.

* rendering/style/RenderStyle.h:
(WebCore::RenderStyle::resetPadding):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (269036 => 269037)


--- trunk/Source/WebCore/ChangeLog	2020-10-27 13:27:17 UTC (rev 269036)
+++ trunk/Source/WebCore/ChangeLog	2020-10-27 13:28:41 UTC (rev 269037)
@@ -1,3 +1,13 @@
+2020-10-27  Zalan Bujtas  <[email protected]>
+
+        RenderStyle::resetPadding sets incorrect computed value (auto)
+        https://bugs.webkit.org/show_bug.cgi?id=218211
+
+        Reviewed by Antti Koivisto.
+
+        * rendering/style/RenderStyle.h:
+        (WebCore::RenderStyle::resetPadding):
+
 2020-10-27  Philippe Normand  <[email protected]>
 
         [GStreamer] Device monitor issue in AudioDestination

Modified: trunk/Source/WebCore/rendering/style/RenderStyle.h (269036 => 269037)


--- trunk/Source/WebCore/rendering/style/RenderStyle.h	2020-10-27 13:27:17 UTC (rev 269036)
+++ trunk/Source/WebCore/rendering/style/RenderStyle.h	2020-10-27 13:28:41 UTC (rev 269037)
@@ -1024,7 +1024,7 @@
     void setMarginStart(Length&&);
     void setMarginEnd(Length&&);
 
-    void resetPadding() { SET_VAR(m_surroundData, padding, LengthBox(Auto)); }
+    void resetPadding() { SET_VAR(m_surroundData, padding, LengthBox(initialPadding().intValue())); }
     void setPaddingBox(LengthBox&& box) { SET_VAR(m_surroundData, padding, WTFMove(box)); }
     void setPaddingTop(Length&& length) { SET_VAR(m_surroundData, padding.top(), WTFMove(length)); }
     void setPaddingBottom(Length&& length) { SET_VAR(m_surroundData, padding.bottom(), WTFMove(length)); }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to