Changeset 252913 in webkit


Ignore:
Timestamp:
Nov 27, 2019 3:07:46 PM (4 years ago)
Author:
Manuel Rego Casasnovas
Message:

Using char* instead of String for StyleProperties::getShorthandValue()
https://bugs.webkit.org/show_bug.cgi?id=204644

Reviewed by Darin Adler.

This is follow-up patch for r252901. We don't need to create a String object
just for the separator and can use char* instead.
This was suggested by Darin Adler in webkit.org/b/204508.

  • css/StyleProperties.cpp:

(WebCore::StyleProperties::getShorthandValue const):

  • css/StyleProperties.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r252912 r252913  
     12019-11-27  Manuel Rego Casasnovas  <rego@igalia.com>
     2
     3        Using char* instead of String for StyleProperties::getShorthandValue()
     4        https://bugs.webkit.org/show_bug.cgi?id=204644
     5
     6        Reviewed by Darin Adler.
     7
     8        This is follow-up patch for r252901. We don't need to create a String object
     9        just for the separator and can use char* instead.
     10        This was suggested by Darin Adler in webkit.org/b/204508.
     11
     12        * css/StyleProperties.cpp:
     13        (WebCore::StyleProperties::getShorthandValue const):
     14        * css/StyleProperties.h:
     15
    1162019-11-27  Zalan Bujtas  <zalan@apple.com>
    217
  • trunk/Source/WebCore/css/StyleProperties.cpp

    r252901 r252913  
    656656}
    657657
    658 String StyleProperties::getShorthandValue(const StylePropertyShorthand& shorthand, const String& separator) const
     658String StyleProperties::getShorthandValue(const StylePropertyShorthand& shorthand, const char* separator) const
    659659{
    660660    String commonValue;
  • trunk/Source/WebCore/css/StyleProperties.h

    r252901 r252913  
    161161private:
    162162    String getGridShorthandValue(const StylePropertyShorthand&) const;
    163     String getShorthandValue(const StylePropertyShorthand&, const String& separator = " ") const;
     163    String getShorthandValue(const StylePropertyShorthand&, const char* separator = " ") const;
    164164    String getCommonValue(const StylePropertyShorthand&) const;
    165165    String getAlignmentShorthandValue(const StylePropertyShorthand&) const;
Note: See TracChangeset for help on using the changeset viewer.