⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 269037 in webkit


Ignore:
Timestamp:
Oct 27, 2020, 6:28:41 AM (6 years ago)
Author:
Alan Bujtas
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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r269034 r269037  
     12020-10-27  Zalan Bujtas  <zalan@apple.com>
     2
     3        RenderStyle::resetPadding sets incorrect computed value (auto)
     4        https://bugs.webkit.org/show_bug.cgi?id=218211
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * rendering/style/RenderStyle.h:
     9        (WebCore::RenderStyle::resetPadding):
     10
    1112020-10-27  Philippe Normand  <pnormand@igalia.com>
    212
  • trunk/Source/WebCore/rendering/style/RenderStyle.h

    r268889 r269037  
    10251025    void setMarginEnd(Length&&);
    10261026
    1027     void resetPadding() { SET_VAR(m_surroundData, padding, LengthBox(Auto)); }
     1027    void resetPadding() { SET_VAR(m_surroundData, padding, LengthBox(initialPadding().intValue())); }
    10281028    void setPaddingBox(LengthBox&& box) { SET_VAR(m_surroundData, padding, WTFMove(box)); }
    10291029    void setPaddingTop(Length&& length) { SET_VAR(m_surroundData, padding.top(), WTFMove(length)); }
Note: See TracChangeset for help on using the changeset viewer.