Changeset 166604 in webkit


Ignore:
Timestamp:
Apr 1, 2014 1:32:33 PM (10 years ago)
Author:
benjamin@webkit.org
Message:

Remove a couple of useless static strings
https://bugs.webkit.org/show_bug.cgi?id=131003

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-04-01
Reviewed by David Kilzer.

There is zero value in keeping those strings alive.

  • css/StyleProperties.cpp:

(WebCore::isInitialOrInherit):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r166603 r166604  
     12014-04-01  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        Remove a couple of useless static strings
     4        https://bugs.webkit.org/show_bug.cgi?id=131003
     5
     6        Reviewed by David Kilzer.
     7
     8        There is zero value in keeping those strings alive.
     9
     10        * css/StyleProperties.cpp:
     11        (WebCore::isInitialOrInherit):
     12
    1132014-04-01  Myles C. Maxfield  <mmaxfield@apple.com>
    214
  • trunk/Source/WebCore/css/StyleProperties.cpp

    r165607 r166604  
    5151static bool isInitialOrInherit(const String& value)
    5252{
    53     DEPRECATED_DEFINE_STATIC_LOCAL(String, initial, ("initial"));
    54     DEPRECATED_DEFINE_STATIC_LOCAL(String, inherit, ("inherit"));
    55     return value.length() == 7 && (value == initial || value == inherit);
     53    return value.length() == 7 && (value == "initial" || value == "inherit");
    5654}
    5755
Note: See TracChangeset for help on using the changeset viewer.