Changeset 222604 in webkit


Ignore:
Timestamp:
Sep 27, 2017 11:18:21 PM (7 years ago)
Author:
zandobersek@gmail.com
Message:

[Cairo] Remove unnecessary cairo.h includes
https://bugs.webkit.org/show_bug.cgi?id=177540

Reviewed by Carlos Garcia Campos.

Drop unnecessary includes of the cairo.h header from the Font.h,
FontPlatformData.h and Pattern.h headers. For the former two the
header isn't required, while in the last one we can use a forward
declaration for the cairo_pattern_t type instead of including
the whole Cairo headers to have that available.

  • platform/graphics/Font.h:
  • platform/graphics/FontPlatformData.h:
  • platform/graphics/Pattern.h:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r222603 r222604  
     12017-09-27  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [Cairo] Remove unnecessary cairo.h includes
     4        https://bugs.webkit.org/show_bug.cgi?id=177540
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Drop unnecessary includes of the cairo.h header from the Font.h,
     9        FontPlatformData.h and Pattern.h headers. For the former two the
     10        header isn't required, while in the last one we can use a forward
     11        declaration for the cairo_pattern_t type instead of including
     12        the whole Cairo headers to have that available.
     13
     14        * platform/graphics/Font.h:
     15        * platform/graphics/FontPlatformData.h:
     16        * platform/graphics/Pattern.h:
     17
    1182017-09-27  Zan Dobersek  <zdobersek@igalia.com>
    219
  • trunk/Source/WebCore/platform/graphics/Font.h

    r220506 r222604  
    4646#if PLATFORM(WIN)
    4747#include <usp10.h>
    48 #endif
    49 
    50 #if USE(CAIRO)
    51 #include <cairo.h>
    5248#endif
    5349
  • trunk/Source/WebCore/platform/graphics/FontPlatformData.h

    r221152 r222604  
    3737#if USE(CAIRO)
    3838#include "RefPtrCairo.h"
    39 #include <cairo.h>
    4039#endif
    4140
  • trunk/Source/WebCore/platform/graphics/Pattern.h

    r218799 r222604  
    4141typedef ID2D1BitmapBrush* PlatformPatternPtr;
    4242#elif USE(CAIRO)
    43 #include <cairo.h>
     43typedef struct _cairo_pattern cairo_pattern_t;
    4444typedef cairo_pattern_t* PlatformPatternPtr;
    4545#elif USE(WINGDI)
Note: See TracChangeset for help on using the changeset viewer.