Changeset 120220 in webkit


Ignore:
Timestamp:
Jun 13, 2012, 10:09:54 AM (13 years ago)
Author:
wangxianzhu@chromium.org
Message:

[Chromium] Let Android and Linux share WebFontRendering decl/impl.
https://bugs.webkit.org/show_bug.cgi?id=88802

Reviewed by Adam Barth.

  • WebKit.gyp:
  • public/linux/WebFontRendering.h: Temporarily forwards to the new file under linuxish.
  • public/linuxish: Added.
  • public/linuxish/WebFontRendering.h: Copied from chromium/public/linux/WebFontRendering.h.
  • src/linux/WebFontRendering.cpp: Removed.
  • src/linuxish: Added.
  • src/linuxish/WebFontRendering.cpp: Copied from chromium/src/linux/WebFontRendering.cpp.
Location:
trunk/Source/WebKit/chromium
Files:
2 added
3 edited
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r120219 r120220  
     12012-06-13  Xianzhu Wang  <wangxianzhu@chromium.org>
     2
     3        [Chromium] Let Android and Linux share WebFontRendering decl/impl.
     4        https://bugs.webkit.org/show_bug.cgi?id=88802
     5
     6        Reviewed by Adam Barth.
     7
     8        * WebKit.gyp:
     9        * public/linux/WebFontRendering.h: Temporarily forwards to the new file under linuxish.
     10        * public/linuxish: Added.
     11        * public/linuxish/WebFontRendering.h: Copied from chromium/public/linux/WebFontRendering.h.
     12        * src/linux/WebFontRendering.cpp: Removed.
     13        * src/linuxish: Added.
     14        * src/linuxish/WebFontRendering.cpp: Copied from chromium/src/linux/WebFontRendering.cpp.
     15
    1162012-06-13  Martin Kosiba  <mkosiba@google.com>
    217
  • trunk/Source/WebKit/chromium/WebKit.gyp

    r120168 r120220  
    285285                'public/gtk/WebInputEventFactory.h',
    286286                'public/linux/WebFontRenderStyle.h',
    287                 'public/linux/WebFontRendering.h',
    288287                'public/linux/WebRenderTheme.h',
     288                'public/linuxish/WebFontRendering.h',
    289289                'public/mac/WebInputEventFactory.h',
    290290                'public/mac/WebSandboxSupport.h',
     
    429429                'src/android/WebInputEventFactory.cpp',
    430430                'src/linux/WebFontInfo.cpp',
    431                 'src/linux/WebFontRendering.cpp',
    432431                'src/linux/WebFontRenderStyle.cpp',
    433432                'src/linux/WebRenderTheme.cpp',
     433                'src/linuxish/WebFontRendering.cpp',
    434434                'src/x11/WebScreenInfoFactory.cpp',
    435435                'src/mac/WebInputEventFactory.mm',
     
    777777                        'public/x11',
    778778                        'public/linux',
     779                        'public/linuxish',
    779780                    ],
    780781                }, { # else: use_x11 != 1
    781782                    'sources/': [
     783                        # FIXME: Put this rule in Chromium's build/filename_rules.gypi.
    782784                        ['exclude', '/x11/'],
    783                         ['exclude', '/linux/'],
    784785                    ],
    785786                }],
     
    791792                        'public/gtk',
    792793                    ],
    793                 }, { # else: toolkit_uses_gtk != 1
    794                     'sources/': [
    795                         ['exclude', '/gtk/'],
    796                     ],
    797794                }],
    798795                ['OS=="android"', {
    799796                    'include_dirs': [
    800797                        'public/android',
    801                     ],
    802                 }, { # else: OS!="android"
    803                     'sources/': [
    804                         ['exclude', '/android/'],
     798                        'public/linuxish',
    805799                    ],
    806800                }],
     
    815809                }, { # else: OS!="mac"
    816810                    'sources/': [
    817                         ['exclude', '/mac/'],
    818811                        ['exclude', 'CG\\.cpp$'],
    819812                    ],
     
    824817                    ],
    825818                }, { # else: OS!="win"
    826                     'sources/': [['exclude', '/win/']],
    827819                    'variables': {
    828820                        # FIXME: Turn on warnings on Windows.
  • trunk/Source/WebKit/chromium/public/linux/WebFontRendering.h

    r119732 r120220  
    2828 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2929 */
    30 
    31 #ifndef WebFontRendering_h
    32 #define WebFontRendering_h
    33 
    34 #include "../platform/WebCommon.h"
    35 #include <SkFontHost.h>
    36 #include <SkPaint.h>
    37 
    38 namespace WebKit {
    39 
    40 class WebFontRendering {
    41 public:
    42     // Set global font renderering preferences.
    43 
    44     WEBKIT_EXPORT static void setHinting(SkPaint::Hinting);
    45     WEBKIT_EXPORT static void setAntiAlias(bool);
    46     WEBKIT_EXPORT static void setSubpixelGlyphs(bool); // DEPRECATED: use setSubpixelRendering instead
    47     WEBKIT_EXPORT static void setSubpixelRendering(bool);
    48     WEBKIT_EXPORT static void setSubpixelPositioning(bool);
    49     WEBKIT_EXPORT static void setLCDOrder(SkFontHost::LCDOrder);
    50     WEBKIT_EXPORT static void setLCDOrientation(SkFontHost::LCDOrientation);
    51 };
    52 
    53 } // namespace WebKit
    54 
    55 #endif
     30// FIXME: Remove once http://codereview.chromium.org/10544103/ is landed.
     31#include "../linuxish/WebFontRendering.h"
Note: See TracChangeset for help on using the changeset viewer.