diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2013-01-02 20:45:45 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-01-03 20:52:38 -0500 |
commit | aa529696fb91eaa167ed4dad9c63957b3466a45c (patch) | |
tree | 2cf78877496d617c3e9be87f275b5bbc5df03b6f /src/effects.js | |
parent | 02d7f9aee3fbe9b568702ecc4edd664245dc8917 (diff) | |
download | jquery-aa529696fb91eaa167ed4dad9c63957b3466a45c.tar.gz jquery-aa529696fb91eaa167ed4dad9c63957b3466a45c.zip |
Remove inlineBlockNeedsLayout and shrinkWrapBlocks.
Diffstat (limited to 'src/effects.js')
-rw-r--r-- | src/effects.js | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/src/effects.js b/src/effects.js index 3d9ae7f4b..f4f435fd2 100644 --- a/src/effects.js +++ b/src/effects.js @@ -282,26 +282,17 @@ function defaultPrefilter( elem, props, opts ) { if ( jQuery.css( elem, "display" ) === "inline" && jQuery.css( elem, "float" ) === "none" ) { - // inline-level elements accept inline-block; - // block-level elements need to be inline with layout - if ( !jQuery.support.inlineBlockNeedsLayout || css_defaultDisplay( elem.nodeName ) === "inline" ) { - style.display = "inline-block"; - - } else { - style.zoom = 1; - } + style.display = "inline-block"; } } if ( opts.overflow ) { style.overflow = "hidden"; - if ( !jQuery.support.shrinkWrapBlocks ) { - anim.done(function() { - style.overflow = opts.overflow[ 0 ]; - style.overflowX = opts.overflow[ 1 ]; - style.overflowY = opts.overflow[ 2 ]; - }); - } + anim.done(function() { + style.overflow = opts.overflow[ 0 ]; + style.overflowX = opts.overflow[ 1 ]; + style.overflowY = opts.overflow[ 2 ]; + }); } |