Changeset 252913 in webkit
- Timestamp:
- Nov 27, 2019, 3:07:46 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r252912 r252913 1 2019-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 1 16 2019-11-27 Zalan Bujtas <zalan@apple.com> 2 17 -
trunk/Source/WebCore/css/StyleProperties.cpp
r252901 r252913 656 656 } 657 657 658 String StyleProperties::getShorthandValue(const StylePropertyShorthand& shorthand, const String&separator) const658 String StyleProperties::getShorthandValue(const StylePropertyShorthand& shorthand, const char* separator) const 659 659 { 660 660 String commonValue; -
trunk/Source/WebCore/css/StyleProperties.h
r252901 r252913 161 161 private: 162 162 String getGridShorthandValue(const StylePropertyShorthand&) const; 163 String getShorthandValue(const StylePropertyShorthand&, const String&separator = " ") const;163 String getShorthandValue(const StylePropertyShorthand&, const char* separator = " ") const; 164 164 String getCommonValue(const StylePropertyShorthand&) const; 165 165 String getAlignmentShorthandValue(const StylePropertyShorthand&) const;
Note:
See TracChangeset
for help on using the changeset viewer.