Changeset 218368 in webkit


Ignore:
Timestamp:
Jun 15, 2017, 4:49:12 PM (8 years ago)
Author:
Simon Fraser
Message:

Allow use of Layout* TextStream operators in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=173440

Reviewed by Zalan Bujtas.

Export TextStream& operator<< for LayoutPoint, LayoutSize and LayoutRect so that
WebKit2 can log them.

Use #pragma once in these geometry headers.

  • platform/graphics/FloatPoint.h:
  • platform/graphics/FloatRect.h:
  • platform/graphics/FloatSize.h:
  • platform/graphics/IntPoint.h:
  • platform/graphics/IntRect.h:
  • platform/graphics/IntSize.h:
  • platform/graphics/LayoutPoint.h:
  • platform/graphics/LayoutRect.h:
  • platform/graphics/LayoutSize.h:
Location:
trunk/Source/WebCore
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r218367 r218368  
     12017-06-15  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Allow use of Layout* TextStream operators in WebKit2
     4        https://bugs.webkit.org/show_bug.cgi?id=173440
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        Export TextStream& operator<< for LayoutPoint, LayoutSize and LayoutRect so that
     9        WebKit2 can log them.
     10
     11        Use #pragma once in these geometry headers.
     12
     13        * platform/graphics/FloatPoint.h:
     14        * platform/graphics/FloatRect.h:
     15        * platform/graphics/FloatSize.h:
     16        * platform/graphics/IntPoint.h:
     17        * platform/graphics/IntRect.h:
     18        * platform/graphics/IntSize.h:
     19        * platform/graphics/LayoutPoint.h:
     20        * platform/graphics/LayoutRect.h:
     21        * platform/graphics/LayoutSize.h:
     22
    1232017-06-15  Antoine Quint  <graouts@apple.com>
    224
  • trunk/Source/WebCore/platform/graphics/FloatPoint.h

    r208371 r218368  
    2525 */
    2626
    27 #ifndef FloatPoint_h
    28 #define FloatPoint_h
     27#pragma once
    2928
    3029#include "FloatSize.h"
     
    290289}
    291290
    292 #endif
  • trunk/Source/WebCore/platform/graphics/FloatRect.h

    r205881 r218368  
    2525 */
    2626
    27 #ifndef FloatRect_h
    28 #define FloatRect_h
     27#pragma once
    2928
    3029#include "FloatPoint.h"
     
    266265}
    267266
    268 #endif
  • trunk/Source/WebCore/platform/graphics/FloatSize.h

    r208748 r218368  
    2626 */
    2727
    28 #ifndef FloatSize_h
    29 #define FloatSize_h
     28#pragma once
    3029
    3130#include "IntPoint.h"
     
    240239} // namespace WebCore
    241240
    242 #endif // FloatSize_h
  • trunk/Source/WebCore/platform/graphics/IntPoint.h

    r212484 r218368  
    2424 */
    2525
    26 #ifndef IntPoint_h
    27 #define IntPoint_h
     26#pragma once
    2827
    2928#include "IntSize.h"
     
    214213} // namespace WebCore
    215214
    216 #endif // IntPoint_h
  • trunk/Source/WebCore/platform/graphics/IntRect.h

    r212484 r218368  
    2424 */
    2525
    26 #ifndef IntRect_h
    27 #define IntRect_h
     26#pragma once
    2827
    2928#include "IntPoint.h"
     
    250249} // namespace WebCore
    251250
    252 #endif // IntRect_h
  • trunk/Source/WebCore/platform/graphics/IntSize.h

    r207708 r218368  
    2424 */
    2525
    26 #ifndef IntSize_h
    27 #define IntSize_h
     26#pragma once
    2827
    2928#include "PlatformExportMacros.h"
     
    219218} // namespace WebCore
    220219
    221 #endif // IntSize_h
  • trunk/Source/WebCore/platform/graphics/LayoutPoint.h

    r208371 r218368  
    2929 */
    3030
    31 #ifndef LayoutPoint_h
    32 #define LayoutPoint_h
     31#pragma once
    3332
    3433#include "FloatPoint.h"
     
    222221}
    223222
    224 TextStream& operator<<(TextStream&, const LayoutPoint&);
     223WEBCORE_EXPORT TextStream& operator<<(TextStream&, const LayoutPoint&);
    225224
    226225} // namespace WebCore
    227226
    228 #endif // LayoutPoint_h
  • trunk/Source/WebCore/platform/graphics/LayoutRect.h

    r206188 r218368  
    2929 */
    3030
    31 #ifndef LayoutRect_h
    32 #define LayoutRect_h
     31#pragma once
    3332
    3433#include "FloatRect.h"
     
    248247FloatRect encloseRectToDevicePixels(const LayoutRect&, float pixelSnappingFactor);
    249248
    250 TextStream& operator<<(TextStream&, const LayoutRect&);
     249WEBCORE_EXPORT TextStream& operator<<(TextStream&, const LayoutRect&);
    251250
    252251} // namespace WebCore
    253252
    254 #endif // LayoutRect_h
  • trunk/Source/WebCore/platform/graphics/LayoutSize.h

    r208748 r218368  
    2929 */
    3030
    31 #ifndef LayoutSize_h
    32 #define LayoutSize_h
     31#pragma once
    3332
    3433#include "FloatSize.h"
     
    192191}
    193192
    194 TextStream& operator<<(TextStream&, const LayoutSize&);
     193WEBCORE_EXPORT TextStream& operator<<(TextStream&, const LayoutSize&);
    195194
    196195} // namespace WebCore
    197196
    198 #endif // LayoutSize_h
Note: See TracChangeset for help on using the changeset viewer.