⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 276192 in webkit


Ignore:
Timestamp:
Apr 16, 2021, 8:12:46 PM (5 years ago)
Author:
basuke.suzuki@sony.com
Message:

Use WebKit macro to detect 64bit in RenderLayerBacking.h
https://bugs.webkit.org/show_bug.cgi?id=224707

Reviewed by Yusuke Suzuki.

There's no definition of WORDSIZE in some environment. Also there's WebKit macro for that.

warning: 'WORDSIZE' is not defined, evaluates to 0 [-Wundef]
#if
WORDSIZE == 64 && PLATFORM(COCOA)


No test because it's compiler behavior.

  • rendering/RenderLayerBacking.h:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r276191 r276192  
     12021-04-16  Basuke Suzuki  <basuke.suzuki@sony.com>
     2
     3        Use WebKit macro to detect 64bit in RenderLayerBacking.h
     4        https://bugs.webkit.org/show_bug.cgi?id=224707
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        There's no definition of __WORDSIZE in some environment. Also there's WebKit macro for that.
     9
     10        > warning: '__WORDSIZE' is not defined, evaluates to 0 [-Wundef]
     11        > #if __WORDSIZE == 64 && PLATFORM(COCOA)
     12        >     ^
     13
     14        No test because it's compiler behavior.
     15
     16        * rendering/RenderLayerBacking.h:
     17
    1182021-04-16  Ryosuke Niwa  <rniwa@webkit.org>
    219
  • trunk/Source/WebCore/rendering/RenderLayerBacking.h

    r268932 r276192  
    4444
    4545
    46 #if __WORDSIZE == 64 && PLATFORM(COCOA)
     46#if CPU(ADDRESS64) && PLATFORM(COCOA)
    4747#define USE_OWNING_LAYER_BEAR_TRAP 1
    4848#define BEAR_TRAP_VALUE 0xEEEEEEEEEEEEEEEE
Note: See TracChangeset for help on using the changeset viewer.