Move 'image-resolution' CSS property to the new StyleBuilder
https://bugs.webkit.org/show_bug.cgi?id=138715

Reviewed by Andreas Kling.

Move 'image-resolution' CSS property from DeprecatedStyleBuilder to
the new StyleBuilder by using custom code.

No new tests, no behavior change.

* css/CSSPropertyNames.in:
* css/DeprecatedStyleBuilder.cpp:
(WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
(WebCore::ApplyPropertyImageResolution::applyInheritValue): Deleted.
(WebCore::ApplyPropertyImageResolution::applyInitialValue): Deleted.
(WebCore::ApplyPropertyImageResolution::applyValue): Deleted.
(WebCore::ApplyPropertyImageResolution::createHandler): Deleted.
* css/StyleBuilderCustom.h:
(WebCore::StyleBuilderFunctions::applyInheritImageResolution):
(WebCore::StyleBuilderFunctions::applyInitialImageResolution):
(WebCore::StyleBuilderFunctions::applyValueImageResolution):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@176111 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move FontMac and FontCacheMac off of WKSI
https://bugs.webkit.org/show_bug.cgi?id=138633

Patch by Myles C. Maxfield <mmaxfield@apple.com> on 2014-11-13
Reviewed by NOBODY (OOPS!).

Source/WebCore:

No new tests because there is no behavior change.

* WebCore.exp.in:
* WebCore.order:
* WebCore.vcxproj/WebCoreCG.props:
* WebCore.xcodeproj/project.pbxproj:
* platform/graphics/ios/FontCacheIOS.mm:
(WebCore::FontCache::platformInit):
* platform/graphics/mac/FontCacheMac.mm:
(WebCore::FontCache::platformInit):
(WebCore::FontCache::systemFallbackForCharacters):
* platform/graphics/mac/FontMac.mm:
(WebCore::isIntegral):
(WebCore::setCGFontRenderingMode):
(WebCore::Font::drawGlyphs):
* platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
* platform/graphics/win/FontCacheWin.cpp:
(WebCore::FontCache::platformInit):
* platform/ios/WebCoreSystemInterfaceIOS.mm:
* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:
* platform/spi/cocoa/CoreGraphicsSPI.h: Copied from Source/WebCore/platform/spi/cocoa/CGFontUnicodeSupportSPI.h.
* platform/spi/cocoa/CoreTextSPI.h:
* platform/spi/mac/NSFontSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/CGFontUnicodeSupportSPI.h.

Source/WebKit/mac:

* WebCoreSupport/WebSystemInterface.mm:
(InitWebCoreSystemInterface):
* WebKit.order:

Source/WebKit2:

* WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
(InitWebCoreSystemInterface):
* mac/WebKit2.order:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@176112 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rebaseline iOS layout tests
https://bugs.webkit.org/show_bug.cgi?id=138721

Reviewed by Simon Fraser.

Rebaseline many of the failures in compositing tests.

* platform/ios-simulator/compositing/absolute-inside-out-of-view-fixed-expected.txt:
* platform/ios-simulator/compositing/backing/backface-visibility-flip-expected.txt:
* platform/ios-simulator/compositing/backing/backface-visibility-in-3dtransformed-expected.txt:
* platform/ios-simulator/compositing/backing/border-radius-no-backing-expected.txt:
* platform/ios-simulator/compositing/backing/child-layer-no-backing-expected.txt:
* platform/ios-simulator/compositing/backing/filter-no-backing-expected.txt:
* platform/ios-simulator/compositing/backing/inline-block-no-backing-expected.txt:
* platform/ios-simulator/compositing/backing/masked-child-no-backing-expected.txt:
* platform/ios-simulator/compositing/backing/no-backing-for-clip-expected.txt:
* platform/ios-simulator/compositing/backing/no-backing-for-clip-overhang-expected.txt:
* platform/ios-simulator/compositing/backing/no-backing-for-clip-overlap-expected.txt:
* platform/ios-simulator/compositing/backing/no-backing-for-perspective-expected.txt:
* platform/ios-simulator/compositing/backing/replaced-child-no-backing-expected.txt:
* platform/ios-simulator/compositing/backing/whitespace-nodes-no-backing-expected.txt:
* platform/ios-simulator/compositing/bounds-in-flipped-writing-mode-expected.txt:
* platform/ios-simulator/compositing/clip-child-by-non-stacking-ancestor-expected.txt:
* platform/ios-simulator/compositing/columns/ancestor-clipped-in-paginated-expected.txt:
* platform/ios-simulator/compositing/columns/clipped-in-paginated-expected.txt:
* platform/ios-simulator/compositing/columns/composited-columns-expected.txt:
* platform/ios-simulator/compositing/columns/composited-columns-vertical-rl-expected.txt:
* platform/ios-simulator/compositing/columns/composited-in-paginated-expected.txt:
* platform/ios-simulator/compositing/columns/composited-in-paginated-rl-expected.txt:
* platform/ios-simulator/compositing/columns/composited-in-paginated-writing-mode-rl-expected.txt:
* platform/ios-simulator/compositing/columns/composited-lr-paginated-repaint-expected.txt:
* platform/ios-simulator/compositing/columns/composited-nested-columns-expected.txt:
* platform/ios-simulator/compositing/columns/composited-rl-paginated-repaint-expected.txt:
* platform/ios-simulator/compositing/columns/hittest-composited-in-paginated-expected.txt:
* platform/ios-simulator/compositing/columns/rotated-in-paginated-expected.txt:
* platform/ios-simulator/compositing/columns/untransformed-composited-in-paginated-expected.txt:
* platform/ios-simulator/compositing/contents-opaque/background-clip-expected.txt:
* platform/ios-simulator/compositing/contents-opaque/background-color-expected.txt:
* platform/ios-simulator/compositing/contents-opaque/body-background-painted-expected.txt:
* platform/ios-simulator/compositing/contents-opaque/body-background-skipped-expected.txt:
* platform/ios-simulator/compositing/contents-opaque/control-layer-expected.txt:
* platform/ios-simulator/compositing/contents-opaque/filter-expected.txt:
* platform/ios-simulator/compositing/contents-opaque/hidden-with-visible-child-expected.txt:
* platform/ios-simulator/compositing/contents-opaque/hidden-with-visible-text-expected.txt:
* platform/ios-simulator/compositing/contents-opaque/layer-opacity-expected.txt:
* platform/ios-simulator/compositing/contents-opaque/layer-transform-expected.txt:
* platform/ios-simulator/compositing/contents-opaque/overflow-hidden-child-layers-expected.txt:
* platform/ios-simulator/compositing/contents-opaque/visibility-hidden-expected.txt:
* platform/ios-simulator/compositing/contents-scale/animating-expected.txt:
* platform/ios-simulator/compositing/contents-scale/rounded-contents-scale-expected.txt:
* platform/ios-simulator/compositing/contents-scale/scaled-ancestor-expected.txt:
* platform/ios-simulator/compositing/contents-scale/simple-scale-expected.txt:
* platform/ios-simulator/compositing/contents-scale/z-translate-expected.txt:
* platform/ios-simulator/compositing/filters/sw-layer-overlaps-hw-shadow-expected.txt:
* platform/ios-simulator/compositing/filters/sw-nested-shadow-overlaps-hw-nested-shadow-expected.txt:
* platform/ios-simulator/compositing/filters/sw-shadow-overlaps-hw-layer-expected.txt:
* platform/ios-simulator/compositing/filters/sw-shadow-overlaps-hw-shadow-expected.txt:
* platform/ios-simulator/compositing/fixed-image-loading-expected.txt:
* platform/ios-simulator/compositing/geometry/ancestor-overflow-change-expected.txt:
* platform/ios-simulator/compositing/geometry/bounds-clipped-composited-child-expected.txt:
* platform/ios-simulator/compositing/geometry/bounds-ignores-hidden-composited-descendant-expected.txt:
* platform/ios-simulator/compositing/geometry/bounds-ignores-hidden-dynamic-expected.txt:
* platform/ios-simulator/compositing/geometry/bounds-ignores-hidden-dynamic-negzindex-expected.txt:
* platform/ios-simulator/compositing/geometry/bounds-ignores-hidden-expected.txt:
* platform/ios-simulator/compositing/geometry/clip-expected.txt:
* platform/ios-simulator/compositing/geometry/clip-inside-expected.txt:
* platform/ios-simulator/compositing/geometry/composited-in-columns-expected.txt:
* platform/ios-simulator/compositing/geometry/fixed-position-composited-switch-expected.txt:
* platform/ios-simulator/compositing/geometry/flipped-writing-mode-expected.txt:
* platform/ios-simulator/compositing/geometry/foreground-layer-expected.txt:
* platform/ios-simulator/compositing/geometry/layer-due-to-layer-children-deep-switch-expected.txt:
* platform/ios-simulator/compositing/geometry/layer-due-to-layer-children-switch-expected.txt:
* platform/ios-simulator/compositing/geometry/limit-layer-bounds-fixed-expected.txt:
* platform/ios-simulator/compositing/geometry/limit-layer-bounds-fixed-positioned-expected.txt:
* platform/ios-simulator/compositing/geometry/limit-layer-bounds-overflow-root-expected.txt:
* platform/ios-simulator/compositing/geometry/limit-layer-bounds-positioned-expected.txt:
* platform/ios-simulator/compositing/geometry/limit-layer-bounds-positioned-transition-expected.txt:
* platform/ios-simulator/compositing/geometry/limit-layer-bounds-transformed-expected.txt:
* platform/ios-simulator/compositing/geometry/limit-layer-bounds-transformed-overflow-expected.txt:
* platform/ios-simulator/compositing/geometry/negative-text-indent-with-overflow-hidden-layer-expected.txt:
* platform/ios-simulator/compositing/geometry/preserve-3d-switching-expected.txt:
* platform/ios-simulator/compositing/geometry/vertical-scroll-composited-expected.txt:
* platform/ios-simulator/compositing/iframes/become-composited-nested-iframes-expected.txt:
* platform/ios-simulator/compositing/iframes/become-overlapped-iframe-expected.txt:
* platform/ios-simulator/compositing/iframes/composited-parent-iframe-expected.txt:
* platform/ios-simulator/compositing/iframes/connect-compositing-iframe-delayed-expected.txt:
* platform/ios-simulator/compositing/iframes/connect-compositing-iframe-expected.txt:
* platform/ios-simulator/compositing/iframes/connect-compositing-iframe2-expected.txt:
* platform/ios-simulator/compositing/iframes/connect-compositing-iframe3-expected.txt:
* platform/ios-simulator/compositing/iframes/enter-compositing-iframe-expected.txt:
* platform/ios-simulator/compositing/iframes/iframe-resize-expected.txt:
* platform/ios-simulator/compositing/iframes/iframe-size-from-zero-expected.txt:
* platform/ios-simulator/compositing/iframes/iframe-size-to-zero-expected.txt: Progression.
* platform/ios-simulator/compositing/iframes/iframe-src-change-expected.txt: Progression.
* platform/ios-simulator/compositing/iframes/invisible-nested-iframe-hide-expected.txt:
* platform/ios-simulator/compositing/iframes/leave-compositing-iframe-expected.txt:
* platform/ios-simulator/compositing/iframes/overlapped-iframe-expected.txt:
* platform/ios-simulator/compositing/iframes/overlapped-iframe-iframe-expected.txt:
* platform/ios-simulator/compositing/iframes/overlapped-nested-iframes-expected.txt:
* platform/ios-simulator/compositing/iframes/page-cache-layer-tree-expected.txt:
* platform/ios-simulator/compositing/iframes/resizer-expected.txt:
* platform/ios-simulator/compositing/iframes/scrolling-iframe-expected.txt:
* platform/ios-simulator/compositing/images/clip-on-directly-composited-image-expected.txt:
* platform/ios-simulator/compositing/layer-creation/animation-overlap-with-children-expected.txt:
* platform/ios-simulator/compositing/layer-creation/fixed-position-and-transform-expected.txt:
* platform/ios-simulator/compositing/layer-creation/fixed-position-change-out-of-view-in-view-expected.txt:
* platform/ios-simulator/compositing/layer-creation/fixed-position-out-of-view-expected.txt:
* platform/ios-simulator/compositing/layer-creation/fixed-position-out-of-view-scaled-expected.txt:
* platform/ios-simulator/compositing/layer-creation/fixed-position-out-of-view-scaled-scroll-expected.txt:
* platform/ios-simulator/compositing/layer-creation/fixed-position-transformed-into-view-expected.txt:
* platform/ios-simulator/compositing/layer-creation/fixed-position-under-transform-expected.txt:
* platform/ios-simulator/compositing/layer-creation/no-compositing-for-fixed-position-under-transform-expected.txt:
* platform/ios-simulator/compositing/layer-creation/no-compositing-for-preserve-3d-expected.txt:
* platform/ios-simulator/compositing/layer-creation/no-compositing-for-sticky-expected.txt:
* platform/ios-simulator/compositing/layer-creation/overflow-scroll-overlap-expected.txt:
* platform/ios-simulator/compositing/layer-creation/overlap-child-layer-expected.txt:
* platform/ios-simulator/compositing/layer-creation/overlap-clipping-expected.txt:
* platform/ios-simulator/compositing/layer-creation/overlap-transformed-3d-expected.txt:
* platform/ios-simulator/compositing/layer-creation/overlap-transformed-and-clipped-expected.txt:
* platform/ios-simulator/compositing/layer-creation/overlap-transformed-layer-expected.txt:
* platform/ios-simulator/compositing/layer-creation/overlap-transformed-preserved-3d-expected.txt:
* platform/ios-simulator/compositing/layer-creation/overlap-transforms-expected.txt:
* platform/ios-simulator/compositing/layer-creation/rotate3d-overlap-expected.txt:
* platform/ios-simulator/compositing/layer-creation/scroll-partial-update-expected.txt:
* platform/ios-simulator/compositing/layer-creation/stacking-context-overlap-expected.txt:
* platform/ios-simulator/compositing/layer-creation/stacking-context-overlap-nested-expected.txt:
* platform/ios-simulator/compositing/layer-creation/translatez-overlap-expected.txt:
* platform/ios-simulator/compositing/masks/mask-layer-size-expected.txt:
* platform/ios-simulator/compositing/overflow-trumps-transform-style-expected.txt:
* platform/ios-simulator/compositing/overflow/automatically-opt-into-composited-scrolling-expected.txt: Progression.
* platform/ios-simulator/compositing/overflow/clip-descendents-expected.txt:
* platform/ios-simulator/compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants-expected.txt:
* platform/ios-simulator/compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants2-expected.txt:
* platform/ios-simulator/compositing/overflow/content-gains-scrollbars-expected.txt:
* platform/ios-simulator/compositing/overflow/content-loses-scrollbars-expected.txt:
* platform/ios-simulator/compositing/overflow/overflow-auto-with-touch-expected.txt:
* platform/ios-simulator/compositing/overflow/overflow-auto-with-touch-toggle-expected.txt:
* platform/ios-simulator/compositing/overflow/overflow-overlay-with-touch-expected.txt:
* platform/ios-simulator/compositing/overflow/overflow-scrollbar-layer-positions-expected.txt:
* platform/ios-simulator/compositing/overflow/overflow-scrollbar-layers-expected.txt:
* platform/ios-simulator/compositing/overflow/resize-painting-expected.txt:
* platform/ios-simulator/compositing/regions/fixed-in-named-flow-clip-descendant-expected.txt:
* platform/ios-simulator/compositing/regions/fixed-in-named-flow-expected.txt:
* platform/ios-simulator/compositing/regions/fixed-in-named-flow-from-abs-in-named-flow-expected.txt:
* platform/ios-simulator/compositing/regions/fixed-in-named-flow-from-outflow-expected.txt:
* platform/ios-simulator/compositing/regions/fixed-in-named-flow-got-transformed-parent-expected.txt:
* platform/ios-simulator/compositing/regions/fixed-in-named-flow-lost-transformed-parent-expected.txt:
* platform/ios-simulator/compositing/regions/fixed-in-named-flow-overlap-composited-expected.txt:
* platform/ios-simulator/compositing/regions/fixed-in-named-flow-transformed-parent-expected.txt:
* platform/ios-simulator/compositing/regions/fixed-transformed-in-named-flow-expected.txt:
* platform/ios-simulator/compositing/repaint/absolute-painted-into-composited-ancestor-expected.txt:
* platform/ios-simulator/compositing/repaint/become-overlay-composited-layer-expected.txt:
* platform/ios-simulator/compositing/repaint/fixed-background-scroll-expected.txt:
* platform/ios-simulator/compositing/repaint/invalidations-on-composited-layers-expected.txt:
* platform/ios-simulator/compositing/repaint/positioned-movement-expected.txt:
* platform/ios-simulator/compositing/repaint/repaint-on-layer-grouping-change-expected.txt:
* platform/ios-simulator/compositing/repaint/resize-repaint-expected.txt:
* platform/ios-simulator/compositing/rtl/rtl-absolute-expected.txt:
* platform/ios-simulator/compositing/rtl/rtl-absolute-overflow-expected.txt:
* platform/ios-simulator/compositing/rtl/rtl-absolute-overflow-scrolled-expected.txt:
* platform/ios-simulator/compositing/rtl/rtl-fixed-expected.txt:
* platform/ios-simulator/compositing/rtl/rtl-fixed-overflow-expected.txt:
* platform/ios-simulator/compositing/rtl/rtl-fixed-overflow-scrolled-expected.txt:
* platform/ios-simulator/compositing/rtl/rtl-iframe-absolute-expected.txt:
* platform/ios-simulator/compositing/rtl/rtl-iframe-absolute-overflow-expected.txt:
* platform/ios-simulator/compositing/rtl/rtl-iframe-fixed-expected.txt:
* platform/ios-simulator/compositing/rtl/rtl-iframe-relative-expected.txt:
* platform/ios-simulator/compositing/rtl/rtl-relative-expected.txt:
* platform/ios-simulator/compositing/scrolling/touch-scroll-to-clip-expected.txt:
* platform/ios-simulator/compositing/tiled-layers-hidpi-expected.txt:
* platform/ios-simulator/compositing/tiling/backface-preserve-3d-tiled-expected.txt:
* platform/ios-simulator/compositing/tiling/crash-reparent-tiled-layer-expected.txt:
* platform/ios-simulator/compositing/tiling/huge-layer-add-remove-child-expected.txt:
* platform/ios-simulator/compositing/tiling/huge-layer-img-expected.txt:
* platform/ios-simulator/compositing/tiling/huge-layer-with-layer-children-expected.txt:
* platform/ios-simulator/compositing/tiling/huge-layer-with-layer-children-resize-expected.txt:
* platform/ios-simulator/compositing/tiling/rotated-tiled-clamped-expected.txt:
* platform/ios-simulator/compositing/tiling/rotated-tiled-preserve3d-clamped-expected.txt:
* platform/ios-simulator/compositing/tiling/tile-cache-zoomed-expected.txt:
* platform/ios-simulator/compositing/tiling/tiled-layer-resize-expected.txt:
* platform/ios-simulator/compositing/visibility/layer-visible-content-expected.txt:
* platform/ios-simulator/compositing/visibility/visibility-image-layers-dynamic-expected.txt:
* platform/ios-simulator/compositing/visible-rect/2d-transformed-expected.txt:
* platform/ios-simulator/compositing/visible-rect/3d-transform-style-expected.txt:
* platform/ios-simulator/compositing/visible-rect/3d-transformed-expected.txt:
* platform/ios-simulator/compositing/visible-rect/clipped-by-viewport-expected.txt:
* platform/ios-simulator/compositing/visible-rect/clipped-visible-rect-expected.txt:
* platform/ios-simulator/compositing/visible-rect/flipped-preserve-3d-expected.txt:
* platform/ios-simulator/compositing/visible-rect/iframe-and-layers-expected.txt:
* platform/ios-simulator/compositing/visible-rect/nested-transform-expected.txt:
* platform/ios-simulator/compositing/visible-rect/scrolled-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@176113 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Addressing post-review comment
https://bugs.webkit.org/show_bug.cgi?id=138633

* platform/spi/cg/CoreGraphicsSPI.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@176114 268f45cc-cd09-0410-ab3c-d52691b4dbfc