-
pfeldman@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=81892 Reviewed by Vsevolod Vlasov. Today, backend generates stylesheet change event synchronously from within set* command. But CSSStyleModel defers its dispatching until the stylesheet content is available. This prevents us from ignoring update events from within commands that initiated those updates. This change makes stylesheet change event dispatch synchronously and delegates stylesheet content fetching to the event client. * inspector/front-end/CSSStyleModel.js: (WebInspector.CSSStyleModel.prototype._fireStyleSheetChanged): (WebInspector.CSSStyleDeclaration.prototype.insertPropertyAt): (WebInspector.CSSStyleModelResourceBinding.prototype.setContent): (WebInspector.CSSStyleModelResourceBinding.prototype._innerSetContent.callbackWrapper): (WebInspector.CSSStyleModelResourceBinding.prototype._innerSetContent): (WebInspector.CSSStyleModelResourceBinding.prototype._styleSheetChanged.callback): (WebInspector.CSSStyleModelResourceBinding.prototype._styleSheetChanged): (WebInspector.CSSStyleModelResourceBinding.prototype._innerStyleSheetChanged): Source/WebKit/chromium: [chromium] timing functions are getting incorrectly applied for accelerated css transitions https://bugs.webkit.org/show_bug.cgi?id=81692 Patch by Ian Vollick <vollick@chromium.org> on 2012-03-21 Reviewed by Adrienne Walker. * tests/CCAnimationTestCommon.cpp: (WebCore::addOpacityTransition): (WebKitTests::addOpacityTransitionToController): (WebKitTests::addOpacityTransitionToLayer): * tests/CCAnimationTestCommon.h: (WebKitTests): * tests/CCLayerAnimationControllerTest.cpp: (WebKitTests::TEST): * tests/CCLayerTreeHostTest.cpp: (WTF::CCLayerTreeHostTest::dispatchAddInstantAnimation): (WTF::CCLayerTreeHostTest::dispatchAddAnimation): (WTF::TEST_F): (WTF): (CCLayerTreeHostTestAddAnimationWithTimingFunction): (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::CCLayerTreeHostTestAddAnimationWithTimingFunction): (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::beginTest): (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::animateLayers): (WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::afterTest): LayoutTests: Web Inspector: dispatch styleSheetChanged event synchronously. https://bugs.webkit.org/show_bug.cgi?id=81892 Reviewed by Vsevolod Vlasov. * http/tests/inspector/resources-test.js: (initialize_ResourceTest.InspectorTest.showResource.callbackWrapper): (initialize_ResourceTest.InspectorTest.showResource.showResourceCallback.visit): (initialize_ResourceTest.InspectorTest.showResource.showResourceCallback): (initialize_ResourceTest.InspectorTest.showResource): (initialize_ResourceTest): * inspector/styles/styles-history.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111677 268f45cc-cd09-0410-ab3c-d52691b4dbfc
9638cdeb