Changeset 209142 in webkit


Ignore:
Timestamp:
Nov 30, 2016 11:39:12 AM (7 years ago)
Author:
hyatt@apple.com
Message:

[CSS Parser] Make sure -webkit-background-size coalesces identical values.
https://bugs.webkit.org/show_bug.cgi?id=165207

Reviewed by Dean Jackson.

  • css/parser/CSSPropertyParser.cpp:

(WebCore::consumeBackgroundSize):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r209141 r209142  
     12016-11-30  Dave Hyatt  <hyatt@apple.com>
     2
     3        [CSS Parser] Make sure -webkit-background-size coalesces identical values.
     4        https://bugs.webkit.org/show_bug.cgi?id=165207
     5
     6        Reviewed by Dean Jackson.
     7
     8        * css/parser/CSSPropertyParser.cpp:
     9        (WebCore::consumeBackgroundSize):
     10
    1112016-11-30  Eric Carlson  <eric.carlson@apple.com>
    212
  • trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp

    r209075 r209142  
    27252725    if (!vertical)
    27262726        return horizontal;
    2727     return createPrimitiveValuePair(horizontal.releaseNonNull(), vertical.releaseNonNull(), Pair::IdenticalValueEncoding::DoNotCoalesce);
     2727    return createPrimitiveValuePair(horizontal.releaseNonNull(), vertical.releaseNonNull(), property == CSSPropertyWebkitBackgroundSize ? Pair::IdenticalValueEncoding::Coalesce : Pair::IdenticalValueEncoding::DoNotCoalesce);
    27282728}
    27292729
Note: See TracChangeset for help on using the changeset viewer.