Changeset 45564 in webkit


Ignore:
Timestamp:
Jul 6, 2009 1:55:28 PM (15 years ago)
Author:
Nate Chapin
Message:

2009-07-06 Nate Chapin <Nate Chapin>

Reviewed by Dimitri Glazkov.

Fix a bunch of layout test crahses in Chromium caused by a bad usage of DEFINE_STATIC_LOCAL.

https://bugs.webkit.org/show_bug.cgi?id=26997

  • bindings/v8/V8Binding.cpp: (WebCore::v8ValueToWebCoreString): Use a regular static declaration instead of DEFINE_STATIC_LOCAL.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r45562 r45564  
     12009-07-06  Nate Chapin  <japhet@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        Fix a bunch of layout test crahses in Chromium caused by a bad usage of DEFINE_STATIC_LOCAL.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=26997
     8
     9        * bindings/v8/V8Binding.cpp:
     10        (WebCore::v8ValueToWebCoreString): Use a regular static declaration instead of DEFINE_STATIC_LOCAL.
     11
    1122009-07-06  Pavel Feldman  <pfeldman@chromium.org>
    213
  • trunk/WebCore/bindings/v8/V8Binding.cpp

    r45559 r45564  
    3939
    4040#include <v8.h>
    41 #include <wtf/StdLibExtras.h>
    4241
    4342namespace WebCore {
     
    103102        // Most numbers used are <= 100. Even if they aren't used there's very little in using the space.
    104103        const int kLowNumbers = 100;
    105         DEFINE_STATIC_LOCAL(AtomicString*, lowNumbers, [kLowNumbers + 1]);
     104        static AtomicString lowNumbers[kLowNumbers + 1];
    106105        String webCoreString;
    107106        if (0 <= value && value <= kLowNumbers) {
Note: See TracChangeset for help on using the changeset viewer.