CTTE: Scrolling tree nodes should always have a ScrollingTree&.
<https://webkit.org/b/124022>

Let ScrollingTreeNode and subclasses store the backpointer to the
tree as a ScrollingTree& reference.

Reviewed by Anders Carlsson.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158893 268f45cc-cd09-0410-ab3c-d52691b4dbfc
InlineFlowBox always has a RenderBoxModelObject, take advantage.
<https://webkit.org/b/124024>

Since InlineFlowBox already has the branch-less renderer() returning
a RenderBoxModelObject&, avoid using InlineBox::boxModelObject()
wherever we have a tightly-typed box. One branch disappears from
every call site.

Deleted boxModelObject() on InlineFlowBox to prevent new code from
calling the less efficient function.

Reviewed by Anders Carlsson.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158894 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Encode and decode NSURLResponse objects using NSCoder
https://bugs.webkit.org/show_bug.cgi?id=124028

Reviewed by Andreas Kling.

* Shared/mac/WebCoreArgumentCodersMac.mm:
(CoreIPC::::encodePlatformData):
(CoreIPC::::decodePlatformData):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Optimize baselines: svg/filters

Unreviewed; run "webkit-patch optimize-baselines svg/filters"

* platform/gtk/svg/filters/animate-fill-expected.png: Removed.
* platform/gtk/svg/filters/feColorMatrix-default-type-expected.png: Removed.
* platform/gtk/svg/filters/feColorMatrix-offset-expected.png: Removed.
* platform/gtk/svg/filters/feColorMatrix-values-expected.png: Removed.
* platform/gtk/svg/filters/feComposite-expected.txt: Removed.
* platform/gtk/svg/filters/feDisplacementMap-expected.txt: Removed.
* platform/gtk/svg/filters/feDropShadow-subregion-expected.png: Removed.
* platform/gtk/svg/filters/feDropShadow-zero-deviation-expected.png: Removed.
* platform/gtk/svg/filters/feDropShadow-zero-deviation-expected.txt: Removed.
* platform/gtk/svg/filters/feGaussianBlur-subregion-expected.png: Removed.
* platform/gtk/svg/filters/feGaussianBlur-zero-deviation-expected.png: Removed.
* platform/gtk/svg/filters/feGaussianBlur-zero-deviation-expected.txt: Removed.
* platform/gtk/svg/filters/feImage-change-target-id-expected.png: Removed.
* platform/gtk/svg/filters/feImage-filterUnits-objectBoundingBox-primitiveUnits-userSpaceOnUse-expected.txt: Removed.
* platform/gtk/svg/filters/feImage-remove-target-expected.png: Removed.
* platform/gtk/svg/filters/feLighting-crash-expected.png: Removed.
* platform/gtk/svg/filters/feMerge-wrong-input-expected.png: Removed.
* platform/gtk/svg/filters/filter-empty-g-expected.png: Removed.
* platform/gtk/svg/filters/filter-hidden-content-expected.txt: Removed.
* platform/gtk/svg/filters/filter-on-filter-for-text-expected.png: Removed.
* platform/gtk/svg/filters/filter-on-filter-for-text-expected.txt: Removed.
* platform/gtk/svg/filters/filter-on-tspan-expected.txt: Removed.
* platform/gtk/svg/filters/filter-refresh-expected.png: Removed.
* platform/gtk/svg/filters/filter-rounding-issues-expected.png: Removed.
* platform/gtk/svg/filters/filter-width-update-expected.txt: Removed.
* platform/gtk/svg/filters/filterRes-expected.txt: Removed.
* platform/gtk/svg/filters/filterRes2-expected.png: Removed.
* platform/gtk/svg/filters/filteredImage-expected.png: Removed.
* platform/gtk/svg/filters/sourceAlpha-expected.png: Removed.
* platform/gtk/svg/filters/sourceAlpha-expected.txt: Removed.
* platform/mac/svg/filters/feDisplacementMap-expected.txt: Removed.
* platform/mac/svg/filters/feDropShadow-zero-deviation-expected.txt: Removed.
* platform/mac/svg/filters/feGaussianBlur-zero-deviation-expected.txt: Removed.
* platform/mac/svg/filters/feImage-filterUnits-objectBoundingBox-primitiveUnits-userSpaceOnUse-expected.txt: Removed.
* platform/mac/svg/filters/filter-hidden-content-expected.txt: Removed.
* platform/mac/svg/filters/filterRes-expected.txt: Removed.
* platform/win-future/svg/filters/feImage-reference-svg-primitive-expected.png: Renamed from LayoutTests/svg/filters/feImage-reference-svg-primitive-expected.png.
* svg/filters/animate-fill-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/animate-fill-expected.png.
* svg/filters/feColorMatrix-default-type-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/feColorMatrix-default-type-expected.png.
* svg/filters/feColorMatrix-offset-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/feColorMatrix-offset-expected.png.
* svg/filters/feColorMatrix-values-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/feColorMatrix-values-expected.png.
* svg/filters/feComposite-expected.txt: Renamed from LayoutTests/platform/efl/svg/filters/feComposite-expected.txt.
* svg/filters/feDisplacementMap-expected.txt: Renamed from LayoutTests/platform/efl/svg/filters/feDisplacementMap-expected.txt.
* svg/filters/feDropShadow-subregion-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/feDropShadow-subregion-expected.png.
* svg/filters/feDropShadow-zero-deviation-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/feDropShadow-zero-deviation-expected.png.
* svg/filters/feDropShadow-zero-deviation-expected.txt: Renamed from LayoutTests/platform/efl/svg/filters/feDropShadow-zero-deviation-expected.txt.
* svg/filters/feGaussianBlur-subregion-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/feGaussianBlur-subregion-expected.png.
* svg/filters/feGaussianBlur-zero-deviation-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/feGaussianBlur-zero-deviation-expected.png.
* svg/filters/feGaussianBlur-zero-deviation-expected.txt: Renamed from LayoutTests/platform/efl/svg/filters/feGaussianBlur-zero-deviation-expected.txt.
* svg/filters/feImage-change-target-id-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/feImage-change-target-id-expected.png.
* svg/filters/feImage-filterUnits-objectBoundingBox-primitiveUnits-userSpaceOnUse-expected.txt: Renamed from LayoutTests/platform/efl/svg/filters/feImage-filterUnits-objectBoundingBox-primitiveUnits-userSpaceOnUse-expected.txt.
* svg/filters/feImage-remove-target-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/feImage-remove-target-expected.png.
* svg/filters/feLighting-crash-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/feLighting-crash-expected.png.
* svg/filters/feMerge-wrong-input-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/feMerge-wrong-input-expected.png.
* svg/filters/filter-empty-g-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/filter-empty-g-expected.png.
* svg/filters/filter-hidden-content-expected.txt: Renamed from LayoutTests/platform/efl/svg/filters/filter-hidden-content-expected.txt.
* svg/filters/filter-on-filter-for-text-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/filter-on-filter-for-text-expected.png.
* svg/filters/filter-on-filter-for-text-expected.txt: Renamed from LayoutTests/platform/efl/svg/filters/filter-on-filter-for-text-expected.txt.
* svg/filters/filter-on-tspan-expected.txt: Renamed from LayoutTests/platform/efl/svg/filters/filter-on-tspan-expected.txt.
* svg/filters/filter-refresh-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/filter-refresh-expected.png.
* svg/filters/filter-rounding-issues-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/filter-rounding-issues-expected.png.
* svg/filters/filter-width-update-expected.txt: Renamed from LayoutTests/platform/efl/svg/filters/filter-width-update-expected.txt.
* svg/filters/filterRes-expected.txt: Renamed from LayoutTests/platform/efl/svg/filters/filterRes-expected.txt.
* svg/filters/filterRes2-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/filterRes2-expected.png.
* svg/filters/filteredImage-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/filteredImage-expected.png.
* svg/filters/sourceAlpha-expected.png: Renamed from LayoutTests/platform/efl/svg/filters/sourceAlpha-expected.png.
* svg/filters/sourceAlpha-expected.txt: Renamed from LayoutTests/platform/efl/svg/filters/sourceAlpha-expected.txt.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158896 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make contents layer borders more visible
https://bugs.webkit.org/show_bug.cgi?id=124025

Reviewed by Tim Horton.

Layer borders for contents layers are impossible to see when the
contentsLayer has the same bounds as its parent; make the contents
layer border 4px thick to make it more visible.

* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::setupContentsLayer):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158897 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Shapes] Image shape-outside with vertical gaps is handled incorrectly
https://bugs.webkit.org/show_bug.cgi?id=123934

Reviewed by Andreas Kling.

Source/WebCore:

RasterShapeIntervals::getExcludedIntervals() was returning an empty
list when the line overlapped any vertical gap in the image. This short-circuit
had been mistakenly copied from getIncludedIntervals(), where it makes sense.

Test: fast/shapes/shape-outside-floats/shape-outside-floats-image-vgap.html

* rendering/shapes/RasterShape.cpp:
(WebCore::RasterShapeIntervals::getExcludedIntervals):

LayoutTests:

* fast/shapes/shape-outside-floats/shape-outside-floats-image-vgap-expected.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-floats-image-vgap.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158898 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r158846.
http://trac.webkit.org/changeset/158846

r158846 was duplicating gardening against r158837.

* platform/efl/fullscreen/video-controls-override-expected.txt: Removed.
* platform/efl/http/tests/media/video-cookie-expected.txt: Removed.
* platform/efl/media/W3C/video/canPlayType/canPlayType_codecs_order_2-expected.txt: Removed.
* platform/efl/media/W3C/video/canPlayType/canPlayType_codecs_order_3-expected.txt: Removed.
* platform/efl/media/W3C/video/canPlayType/canPlayType_supported_but_no_codecs_parameter_2-expected.txt: Removed.
* platform/efl/media/W3C/video/canPlayType/canPlayType_supported_but_no_codecs_parameter_3-expected.txt: Removed.
* platform/efl/media/W3C/video/canPlayType/canPlayType_two_implies_one_3-expected.txt: Removed.
* platform/efl/media/W3C/video/canPlayType/canPlayType_two_implies_one_4-expected.txt: Removed.
* platform/efl/media/W3C/video/canPlayType/canPlayType_two_implies_one_5-expected.txt: Removed.
* platform/efl/media/W3C/video/canPlayType/canPlayType_two_implies_one_6-expected.txt: Removed.
* platform/efl/media/context-menu-actions-expected.txt: Removed.
* platform/efl/media/media-can-play-flac-audio-expected.txt: Removed.
* platform/efl/media/media-can-play-webm-expected.txt: Removed.
* platform/efl/media/media-volume-slider-rendered-below-expected.txt: Removed.
* platform/efl/media/media-volume-slider-rendered-normal-expected.txt: Removed.
* platform/efl/media/track/audio/audio-track-mkv-vorbis-addtrack-expected.txt: Removed.
* platform/efl/media/track/audio/audio-track-mkv-vorbis-enabled-expected.txt: Removed.
* platform/efl/media/track/track-cue-mutable-text-expected.txt: Removed.
* platform/efl/media/track/track-cue-rendering-mode-changed-expected.txt: Removed.
* platform/efl/media/track/track-language-preference-expected.txt: Removed.
* platform/efl/media/track/video/video-track-mkv-theora-addtrack-expected.txt: Removed.
* platform/efl/media/track/video/video-track-mkv-theora-selected-expected.txt: Removed.
* platform/efl/media/video-controls-fullscreen-volume-expected.txt: Removed.
* platform/efl/media/video-controls-toggling-expected.txt: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158899 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (r154375): Image is oriented incorrectly
https://bugs.webkit.org/show_bug.cgi?id=123831

Reviewed by Antonio Gomes.

r154375 made that shouldRespectImageOrientation() isn't used by drawImage().
It causes an image isn't oriented correctly. This patch sets shouldRespectImageOrientation()
value by default.

* rendering/RenderImage.cpp:
(WebCore::RenderImage::paintReplaced):
(WebCore::RenderImage::paintIntoRect):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158900 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Get rid of the regT* definitions in JSInterfaceJIT.h.
https://bugs.webkit.org/show_bug.cgi?id=123806.

Reviewed by Geoffrey Garen.

JSInterfaceJIT now inherits from GPRInfo and FPRInfo, and relies on them
to provide all the register definitions.

* jit/GPRInfo.h:
(JSC::GPRInfo::toArgumentRegister):
* jit/JIT.cpp:
(JSC::JIT::emitEnterOptimizationCheck):
(JSC::JIT::privateCompile):
* jit/JITArithmetic.cpp:
(JSC::JIT::emit_compareAndJumpSlow):
* jit/JITArithmetic32_64.cpp:
(JSC::JIT::emit_compareAndJumpSlow):
* jit/JITCall.cpp:
(JSC::JIT::compileLoadVarargs):
* jit/JITCall32_64.cpp:
(JSC::JIT::compileLoadVarargs):
* jit/JITInlines.h:
(JSC::JIT::appendCallWithExceptionCheckSetJSValueResult):
(JSC::JIT::appendCallWithExceptionCheckSetJSValueResultWithProfile):
* jit/JITOpcodes.cpp:
(JSC::JIT::emit_op_end):
(JSC::JIT::emitSlow_op_new_object):
(JSC::JIT::emit_op_ret):
(JSC::JIT::emit_op_ret_object_or_this):
(JSC::JIT::emit_op_throw):
(JSC::JIT::emit_op_get_pnames):
(JSC::JIT::emit_op_switch_imm):
(JSC::JIT::emit_op_switch_char):
(JSC::JIT::emit_op_switch_string):
(JSC::JIT::emit_op_create_activation):
(JSC::JIT::emit_op_create_arguments):
(JSC::JIT::emitSlow_op_jfalse):
(JSC::JIT::emitSlow_op_jtrue):
(JSC::JIT::emitSlow_op_eq):
(JSC::JIT::emitSlow_op_neq):
(JSC::JIT::emitSlow_op_get_argument_by_val):
(JSC::JIT::emitSlow_op_loop_hint):
* jit/JITOpcodes32_64.cpp:
(JSC::JIT::privateCompileCTINativeCall):
(JSC::JIT::emit_op_end):
(JSC::JIT::emitSlow_op_new_object):
(JSC::JIT::emitSlow_op_jfalse):
(JSC::JIT::emitSlow_op_jtrue):
(JSC::JIT::emitSlow_op_eq):
(JSC::JIT::emitSlow_op_neq):
(JSC::JIT::emit_op_throw):
(JSC::JIT::emit_op_get_pnames):
(JSC::JIT::emit_op_switch_imm):
(JSC::JIT::emit_op_switch_char):
(JSC::JIT::emit_op_switch_string):
(JSC::JIT::emit_op_create_activation):
(JSC::JIT::emit_op_create_arguments):
(JSC::JIT::emitSlow_op_get_argument_by_val):
* jit/JSInterfaceJIT.h:
(JSC::JSInterfaceJIT::JSInterfaceJIT):
* jit/SlowPathCall.h:
(JSC::JITSlowPathCall::call):
* jit/ThunkGenerators.cpp:



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