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

Changeset 246463 in webkit


Ignore:
Timestamp:
Jun 15, 2019, 7:16:13 AM (7 years ago)
Author:
Alan Bujtas
Message:

[LFC][MarginCollapsing] Collapsed through margin values preserve quirk state.
https://bugs.webkit.org/show_bug.cgi?id=198885
<rdar://problem/51773568>

Reviewed by Antti Koivisto.

The collapsed through margin becomes a quirk margin if either of the vertical(before/after) margins have quirk value.

  • layout/blockformatting/BlockMarginCollapse.cpp:

(WebCore::Layout::computedPositiveAndNegativeMargin):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r246462 r246463  
     12019-06-15  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][MarginCollapsing] Collapsed through margin values preserve quirk state.
     4        https://bugs.webkit.org/show_bug.cgi?id=198885
     5        <rdar://problem/51773568>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        The collapsed through margin becomes a quirk margin if either of the vertical(before/after) margins have quirk value.
     10
     11        * layout/blockformatting/BlockMarginCollapse.cpp:
     12        (WebCore::Layout::computedPositiveAndNegativeMargin):
     13
    1142019-06-15  Zalan Bujtas  <zalan@apple.com>
    215
  • trunk/Source/WebCore/layout/blockformatting/BlockMarginCollapse.cpp

    r246462 r246463  
    452452
    453453    if (a.isNonZero() && b.isNonZero())
    454         computedValues.isQuirk = a.isQuirk && b.isQuirk;
     454        computedValues.isQuirk = a.isQuirk || b.isQuirk;
    455455    else if (a.isNonZero())
    456456        computedValues.isQuirk = a.isQuirk;
Note: See TracChangeset for help on using the changeset viewer.