Stop unconditionally enabling JavaScript execution when closing the Web Inspector.

https://webkit.org/b/113889
rdar://problem/12281794

Reviewed by Joseph Pecoraro.

* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::InspectorPageAgent): Initialize m_originalScriptExecutionDisabled.
(WebCore::InspectorPageAgent::enable): Populate m_originalScriptExecutionDisabled based on current setting.
(WebCore::InspectorPageAgent::disable): Restore previous setting.
* inspector/InspectorPageAgent.h:
(InspectorPageAgent): Added m_originalScriptExecutionDisabled.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147580 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ASSERTION FAILED: resultAnimationElement->m_animatedType
https://bugs.webkit.org/show_bug.cgi?id=93528

Patch by David Vest <davve@opera.com> on 2013-04-03
Reviewed by Philip Rogers.

Source/WebCore:

When the order of animation elements change within an animation
group, we can't assume that the resultElement is the same as it
was when the animation was frozen. Make sure to reset the
animation type for the resultElement before updating the
animation.

Test: svg/animations/animation-dependency-crash.html

* svg/animation/SVGSMILElement.cpp:
(WebCore::SVGSMILElement::progress):

LayoutTests:

* svg/animations/animation-dependency-crash-expected.txt: Added.
* svg/animations/animation-dependency-crash.html: Added.

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