-
vsevik@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=93443 Patch by Andrei Poenaru <poenaru@adobe.com> on 2012-09-04 Reviewed by Pavel Feldman. Source/WebCore: Added "regionLayoutUpdate" event to the protocol. Removed "getFlowByName" from protocol. The front-end keeps in sync the requested Named Flow Collections. Modified existing test: inspector/styles/protocol-css-regions-commands.html * dom/NamedFlowCollection.cpp: (WebCore::NamedFlowCollection::ensureFlowWithName): (WebCore::NamedFlowCollection::discardNamedFlow): * inspector/Inspector.json: * inspector/InspectorCSSAgent.cpp: (WebCore::InspectorCSSAgent::didCreateNamedFlow): (WebCore::InspectorCSSAgent::willRemoveNamedFlow): (WebCore): (WebCore::InspectorCSSAgent::didUpdateRegionLayout): (WebCore::InspectorCSSAgent::getNamedFlowCollection): (WebCore::InspectorCSSAgent::documentNodeWithRequestedFlowsId): * inspector/InspectorCSSAgent.h: (InspectorCSSAgent): * inspector/InspectorInstrumentation.cpp: (WebCore): (WebCore::InspectorInstrumentation::didCreateNamedFlowImpl): (WebCore::InspectorInstrumentation::willRemoveNamedFlowImpl): (WebCore::InspectorInstrumentation::didUpdateRegionLayoutImpl): * inspector/InspectorInstrumentation.h: (InspectorInstrumentation): (WebCore::InspectorInstrumentation::didCreateNamedFlow): (WebCore::InspectorInstrumentation::willRemoveNamedFlow): (WebCore): (WebCore::InspectorInstrumentation::didUpdateRegionLayout): * inspector/front-end/CSSStyleModel.js: (WebInspector.CSSStyleModel): (WebInspector.CSSStyleModel.prototype.getNamedFlowCollectionAsync.callback): (WebInspector.CSSStyleModel.prototype.getNamedFlowCollectionAsync): (WebInspector.CSSStyleModel.prototype.getFlowByNameAsync.callback): (WebInspector.CSSStyleModel.prototype.getFlowByNameAsync): (WebInspector.CSSStyleModel.prototype._namedFlowCreated): (WebInspector.CSSStyleModel.prototype._namedFlowRemoved): (WebInspector.CSSStyleModel.prototype._regionLayoutUpdated): (WebInspector.CSSStyleModel.prototype._resetNamedFlowCollections): (WebInspector.CSSDispatcher.prototype.namedFlowCreated): (WebInspector.CSSDispatcher.prototype.namedFlowRemoved): (WebInspector.CSSDispatcher.prototype.regionLayoutUpdated): (WebInspector.NamedFlow): (WebInspector.NamedFlowCollection): (WebInspector.NamedFlowCollection.prototype.appendNamedFlow): (WebInspector.NamedFlowCollection.prototype.removeNamedFlow): (WebInspector.NamedFlowCollection.prototype.flowByName): * rendering/RenderNamedFlowThread.cpp: (WebCore::RenderNamedFlowThread::dispatchRegionLayoutUpdateEvent): LayoutTests: Validate "regionLayoutUpdate" event. * inspector/styles/protocol-css-regions-commands-expected.txt: * inspector/styles/protocol-css-regions-commands.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127468 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ad981b04