1. 10 Oct, 2013 1 commit
    • aestes@apple.com's avatar
      Add SPI for telling WebKit to prefer pictograph glyphs over monochrome ones · 765bd952
      aestes@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122608
      
      Reviewed by Dan Bernstein.
      
      Based on patches by Dan Bernstein.
      
      Source/WebCore:
      
      Test: fonts/font-fallback-prefers-pictographs.html
      
      Created a mechanism to append a font to the end of a font's fallback
      list, before the system fallback list. This mechanism is used when
      Settings::fontFallbackPrefersPictographs() is true to insert a
      pictograph font ahead of a monochrome one from the system fallback list.
      
      * WebCore.exp.in: Moved
      __ZN7WebCore8Settings33setFontFallbackPrefersPictographsEb outside of
      an iOS platform guard.
      * css/CSSFontSelector.cpp:
      (WebCore::CSSFontSelector::fallbackFontDataCount): Retuned 1 if
      pictograph fonts are preferred.
      (WebCore::CSSFontSelector::getFallbackFontData): Returned the
      pictograph font's FontData if it is preferred.
      * css/CSSFontSelector.h:
      * page/Settings.cpp:
      (WebCore::Settings::Settings): Initialized
      m_fontFallbackPrefersPictographs to false.
      (WebCore::Settings::setFontFallbackPrefersPictographs): Set
      m_fontFallbackPrefersPictographs and called
      Page::setNeedsRecalcStyleInAllFrames().
      * page/Settings.h:
      (WebCore::Settings::fontFallbackPrefersPictographs):
      * platform/graphics/FontGlyphs.cpp:
      (WebCore::FontGlyphs::realizeFontDataAt): Realized the selector's
      fallback font if necessary.
      * platform/graphics/FontSelector.h:
      * style/StyleResolveTree.cpp:
      (WebCore::Style::resolveTree): Removed iOS platform guards.
      * testing/InternalSettings.cpp:
      (WebCore::InternalSettings::setFontFallbackPrefersPictographs): Set the
      corresponding WebCore::Setting.
      * testing/InternalSettings.h: Defined an internal setting for the test.
      * testing/InternalSettings.idl: Ditto.
      
      Source/WebKit/mac:
      
      * WebView/WebView.mm:
      (-[WebView _setFontFallbackPrefersPictographs:]): Called
      WebCore::Settings::setFontFallbackPrefersPictographs().
      * WebView/WebViewPrivate.h:
      
      LayoutTests:
      
      * fonts/font-fallback-prefers-pictographs-expected.html: Added.
      * fonts/font-fallback-prefers-pictographs.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      765bd952
  2. 13 Jun, 2012 1 commit
    • rniwa@webkit.org's avatar
      Fonts, fullscreen, gamepad, and html5lib tests should use testRunner instead... · 9f3bdaa8
      rniwa@webkit.org authored
      Fonts, fullscreen, gamepad, and html5lib tests should use testRunner instead of layoutTestController
      https://bugs.webkit.org/show_bug.cgi?id=88959
      
      Reviewed by Darin Adler.
      
      * fonts/valid-standard-font.html:
      * fullscreen/anonymous-block-merge-crash.html:
      * fullscreen/full-screen-element-stack.html:
      * fullscreen/full-screen-frameset.html:
      * fullscreen/full-screen-iframe-zIndex.html:
      * fullscreen/full-screen-keyboard-disabled.html:
      * fullscreen/full-screen-keyboard-enabled.html:
      * fullscreen/full-screen-remove-ancestor-during-transition.html:
      * fullscreen/full-screen-remove-sibling.html:
      * fullscreen/full-screen-render-inline.html:
      * fullscreen/full-screen-request-rejected.html:
      * fullscreen/full-screen-request-removed.html:
      * fullscreen/full-screen-restrictions.html:
      * fullscreen/full-screen-stacking-context.html:
      * fullscreen/full-screen-test.js:
      (runWithKeyDown):
      (endTest):
      * fullscreen/full-screen-zIndex-after.html:
      * fullscreen/full-screen-zIndex.html:
      * fullscreen/non-ancestor-iframe.html:
      * fullscreen/parent-flow-inline-with-block-child.html:
      * fullscreen/video-controls-override.html:
      * html5lib/resources/runner.js:
      (run):
      * html5lib/webkit-resumer.html:
      * platform/gtk/fonts/custom-font-missing-glyphs.html:
      * platform/gtk/fonts/font-face-with-complex-text.html:
      * platform/gtk/fonts/font-family-fallback.html:
      * platform/gtk/fonts/synthetic-oblique-positioning.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@120190 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f3bdaa8
  3. 08 Jun, 2012 1 commit
  4. 24 Mar, 2009 1 commit
    • pam@chromium.org's avatar
      2009-03-24 Pamela Greene <pam@chromium.org> · 51e43e30
      pam@chromium.org authored
              Reviewed by Sam Weinig.
      
              Add tests of font choices and metrics, to isolate those dependencies.
      
              https://bugs.webkit.org/show_bug.cgi?id=24566
      
              * fonts: Added.
              * fonts/cursive.html: Added.
              * fonts/default.html: Added.
              * fonts/fantasy.html: Added.
              * fonts/monospace.html: Added.
              * fonts/sans-serif.html: Added.
              * fonts/serif.html: Added.
              * platform/mac/fonts: Added.
              * platform/mac/fonts/cursive-expected.checksum: Added.
              * platform/mac/fonts/cursive-expected.png: Added.
              * platform/mac/fonts/cursive-expected.txt: Added.
              * platform/mac/fonts/default-expected.checksum: Added.
              * platform/mac/fonts/default-expected.png: Added.
              * platform/mac/fonts/default-expected.txt: Added.
              * platform/mac/fonts/fantasy-expected.checksum: Added.
              * platform/mac/fonts/fantasy-expected.png: Added.
              * platform/mac/fonts/fantasy-expected.txt: Added.
              * platform/mac/fonts/monospace-expected.checksum: Added.
              * platform/mac/fonts/monospace-expected.png: Added.
              * platform/mac/fonts/monospace-expected.txt: Added.
              * platform/mac/fonts/sans-serif-expected.checksum: Added.
              * platform/mac/fonts/sans-serif-expected.png: Added.
              * platform/mac/fonts/sans-serif-expected.txt: Added.
              * platform/mac/fonts/serif-expected.checksum: Added.
              * platform/mac/fonts/serif-expected.png: Added.
              * platform/mac/fonts/serif-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41955 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      51e43e30