12012-08-06 Andrei Poenaru <poenaru@adobe.com>
2
3 Web Inspector: Protocol: Add "namedFlowCreated" and "namedFlowRemoved" events
4 https://bugs.webkit.org/show_bug.cgi?id=92739
5
6 Reviewed by NOBODY (OOPS!).
7
8 Implemented "namedFlowCreated" and "namedFlowRemoved" events.
9
10 Modified test: inspector/styles/protocol-css-regions-commands.html.
11
12 * dom/WebKitNamedFlowCollection.cpp:
13 (WebCore::WebKitNamedFlowCollection::ensureFlowWithName):
14 (WebCore::WebKitNamedFlowCollection::discardNamedFlow):
15 * inspector/Inspector.json:
16 * inspector/InspectorCSSAgent.cpp:
17 (WebCore::InspectorCSSAgent::reset):
18 (WebCore::InspectorCSSAgent::didCreateNamedFlow):
19 (WebCore):
20 (WebCore::InspectorCSSAgent::didRemoveNamedFlow):
21 (WebCore::InspectorCSSAgent::getNamedFlowCollection):
22 * inspector/InspectorCSSAgent.h:
23 (InspectorCSSAgent):
24 * inspector/InspectorInstrumentation.cpp:
25 (WebCore):
26 (WebCore::InspectorInstrumentation::didCreateNamedFlowImpl):
27 (WebCore::InspectorInstrumentation::didRemoveNamedFlowImpl):
28 * inspector/InspectorInstrumentation.h:
29 (InspectorInstrumentation):
30 (WebCore::InspectorInstrumentation::didCreateNamedFlow):
31 (WebCore):
32 (WebCore::InspectorInstrumentation::didRemoveNamedFlow):
33 * inspector/front-end/CSSStyleModel.js:
34 (WebInspector.CSSStyleModel.prototype._namedFlowCreated.callback):
35 (WebInspector.CSSStyleModel.prototype._namedFlowCreated):
36 (WebInspector.CSSStyleModel.prototype._namedFlowRemoved.callback):
37 (WebInspector.CSSStyleModel.prototype._namedFlowRemoved):
38 (WebInspector.CSSDispatcher.prototype.styleSheetChanged):
39 (WebInspector.CSSDispatcher.prototype.namedFlowCreated):
40 (WebInspector.CSSDispatcher.prototype.namedFlowRemoved):
41