Changeset 218395 in webkit
- Timestamp:
- Jun 16, 2017 9:47:21 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 7 deleted
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r218394 r218395 1 2017-06-16 Matt Lewis <jlewis3@apple.com> 2 3 Unreviewed, rolling out r218376. 4 5 The patch cause multiple Layout Test Crashes. 6 7 Reverted changeset: 8 9 "Web Inspector: Instrument 2D/WebGL canvas contexts in the 10 backend" 11 https://bugs.webkit.org/show_bug.cgi?id=172623 12 http://trac.webkit.org/changeset/218376 13 1 14 2017-06-16 Fujii Hironori <Hironori.Fujii@sony.com> 2 15 -
trunk/Source/JavaScriptCore/CMakeLists.txt
r218376 r218395 1351 1351 ${JAVASCRIPTCORE_DIR}/inspector/protocol/ApplicationCache.json 1352 1352 ${JAVASCRIPTCORE_DIR}/inspector/protocol/CSS.json 1353 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Canvas.json1354 1353 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Console.json 1355 1354 ${JAVASCRIPTCORE_DIR}/inspector/protocol/DOM.json -
trunk/Source/JavaScriptCore/ChangeLog
r218392 r218395 1 2017-06-16 Matt Lewis <jlewis3@apple.com> 2 3 Unreviewed, rolling out r218376. 4 5 The patch cause multiple Layout Test Crashes. 6 7 Reverted changeset: 8 9 "Web Inspector: Instrument 2D/WebGL canvas contexts in the 10 backend" 11 https://bugs.webkit.org/show_bug.cgi?id=172623 12 http://trac.webkit.org/changeset/218376 13 1 14 2017-06-16 Konstantin Tokarev <annulen@yandex.ru> 2 15 -
trunk/Source/JavaScriptCore/DerivedSources.make
r218376 r218395 215 215 $(JavaScriptCore)/inspector/protocol/ApplicationCache.json \ 216 216 $(JavaScriptCore)/inspector/protocol/CSS.json \ 217 $(JavaScriptCore)/inspector/protocol/Canvas.json \218 217 $(JavaScriptCore)/inspector/protocol/Console.json \ 219 218 $(JavaScriptCore)/inspector/protocol/DOM.json \ -
trunk/Source/JavaScriptCore/inspector/scripts/codegen/generator.py
r218376 r218395 39 39 return str[:1].upper() + str[1:] 40 40 41 _ALWAYS_SPECIALCASED_ENUM_VALUE_SUBSTRINGS = set([' 2D', 'API', 'CSS', 'DOM', 'HTML', 'JIT', 'XHR', 'XML', 'IOS', 'MacOS'])41 _ALWAYS_SPECIALCASED_ENUM_VALUE_SUBSTRINGS = set(['API', 'CSS', 'DOM', 'HTML', 'JIT', 'XHR', 'XML', 'IOS', 'MacOS']) 42 42 _ALWAYS_SPECIALCASED_ENUM_VALUE_LOOKUP_TABLE = dict([(s.upper(), s) for s in _ALWAYS_SPECIALCASED_ENUM_VALUE_SUBSTRINGS]) 43 44 _ENUM_IDENTIFIER_RENAME_MAP = {45 'webgl': 'WebGL', # Canvas.ContextType.webgl46 }47 43 48 44 # These objects are built manually by creating and setting InspectorValues. … … 256 252 257 253 # Split on hyphen, introduce camelcase, and force uppercasing of acronyms. 258 subwords = map(ucfirst, _ENUM_IDENTIFIER_RENAME_MAP.get(enum_value, enum_value).split('-'))254 subwords = map(ucfirst, enum_value.split('-')) 259 255 return re.sub(re.compile(regex, re.IGNORECASE), replaceCallback, "".join(subwords)) 260 256 -
trunk/Source/WebCore/CMakeLists.txt
r218376 r218395 1890 1890 inspector/InspectorApplicationCacheAgent.cpp 1891 1891 inspector/InspectorCSSAgent.cpp 1892 inspector/InspectorCanvasAgent.cpp1893 1892 inspector/InspectorClient.cpp 1894 1893 inspector/InspectorController.cpp -
trunk/Source/WebCore/ChangeLog
r218393 r218395 1 2017-06-16 Matt Lewis <jlewis3@apple.com> 2 3 Unreviewed, rolling out r218376. 4 5 The patch cause multiple Layout Test Crashes. 6 7 Reverted changeset: 8 9 "Web Inspector: Instrument 2D/WebGL canvas contexts in the 10 backend" 11 https://bugs.webkit.org/show_bug.cgi?id=172623 12 http://trac.webkit.org/changeset/218376 13 1 14 2017-06-16 Daniel Bates <dabates@apple.com> 2 15 -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r218376 r218395 2879 2879 6C4C96DF1AD4483500365672 /* JSReadableStreamBYOBRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C4C96DB1AD4483500365672 /* JSReadableStreamBYOBRequest.h */; }; 2880 2880 6C4C96DF1AD4483500365A50 /* JSReadableStreamDefaultController.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C4C96DB1AD4483500365A50 /* JSReadableStreamDefaultController.h */; }; 2881 6A32D7CE1A16D8C000412F0B /* InspectorCanvasAgent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6A4B6D6619D225D8006F11D3 /* InspectorCanvasAgent.cpp */; };2882 6A4B6D6519D22519006F11D3 /* InspectorCanvasAgent.h in Headers */ = {isa = PBXBuildFile; fileRef = 6A4B6D6419D22519006F11D3 /* InspectorCanvasAgent.h */; };2883 2881 6C638895A96CCEE50C8C946C /* CachedResourceRequestInitiators.h in Headers */ = {isa = PBXBuildFile; fileRef = 6C638893A96CCEE50C8C946C /* CachedResourceRequestInitiators.h */; settings = {ATTRIBUTES = (Private, ); }; }; 2884 2882 6C638896A96CCEE50C8C946C /* CachedResourceRequestInitiators.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6C638894A96CCEE50C8C946C /* CachedResourceRequestInitiators.cpp */; }; … … 10721 10719 6C4C96DB1AD4483500365672 /* JSReadableStreamBYOBRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSReadableStreamBYOBRequest.h; sourceTree = "<group>"; }; 10722 10720 6C4C96DB1AD4483500365A50 /* JSReadableStreamDefaultController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSReadableStreamDefaultController.h; sourceTree = "<group>"; }; 10723 6A4B6D6419D22519006F11D3 /* InspectorCanvasAgent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorCanvasAgent.h; sourceTree = "<group>"; };10724 6A4B6D6619D225D8006F11D3 /* InspectorCanvasAgent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorCanvasAgent.cpp; sourceTree = "<group>"; };10725 10721 6C638893A96CCEE50C8C946C /* CachedResourceRequestInitiators.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CachedResourceRequestInitiators.h; sourceTree = "<group>"; }; 10726 10722 6C638894A96CCEE50C8C946C /* CachedResourceRequestInitiators.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CachedResourceRequestInitiators.cpp; sourceTree = "<group>"; }; … … 17225 17221 B885E8D211E06DD2009FFBF4 /* InspectorApplicationCacheAgent.cpp */, 17226 17222 B885E8D311E06DD2009FFBF4 /* InspectorApplicationCacheAgent.h */, 17227 6A4B6D6619D225D8006F11D3 /* InspectorCanvasAgent.cpp */,17228 6A4B6D6419D22519006F11D3 /* InspectorCanvasAgent.h */,17229 17223 7A1F2B51126C61B20006A7E6 /* InspectorClient.cpp */, 17230 17224 1C81B9580E97330800266E07 /* InspectorClient.h */, … … 27752 27746 82AB1744124B99EC00C5069D /* InspectorCSSAgent.h in Headers */, 27753 27747 4A9CC82116BF9BB400EC645A /* InspectorCSSOMWrappers.h in Headers */, 27754 6A4B6D6519D22519006F11D3 /* InspectorCanvasAgent.h in Headers */,27755 27748 7AB0B1C11211A62200A76940 /* InspectorDatabaseAgent.h in Headers */, 27756 27749 41F062140F5F192600A07EAC /* InspectorDatabaseResource.h in Headers */, … … 31731 31724 93309DF1099E64920056E581 /* InsertTextCommand.cpp in Sources */, 31732 31725 B885E8D411E06DD2009FFBF4 /* InspectorApplicationCacheAgent.cpp in Sources */, 31733 6A32D7CE1A16D8C000412F0B /* InspectorCanvasAgent.cpp in Sources */,31734 31726 7A1F2B52126C61B20006A7E6 /* InspectorClient.cpp in Sources */, 31735 31727 1C81B95B0E97330800266E07 /* InspectorController.cpp in Sources */, -
trunk/Source/WebCore/dom/Document.cpp
r218376 r218395 5409 5409 { 5410 5410 RefPtr<HTMLCanvasElement>& element = m_cssCanvasElements.add(name, nullptr).iterator->value; 5411 if (!element) {5411 if (!element) 5412 5412 element = HTMLCanvasElement::create(*this); 5413 InspectorInstrumentation::didCreateCSSCanvas(*element, name);5414 }5415 5413 return element.get(); 5416 5414 } -
trunk/Source/WebCore/html/HTMLCanvasElement.cpp
r218376 r218395 44 44 #include "HTMLParserIdioms.h" 45 45 #include "ImageData.h" 46 #include "InspectorInstrumentation.h"47 46 #include "MIMETypeRegistry.h" 48 47 #include "RenderHTMLCanvas.h" … … 249 248 downcast<CanvasRenderingContext2D>(*m_context).setTracksDisplayListReplay(m_tracksDisplayListReplay); 250 249 251 InspectorInstrumentation::didCreateCanvasRenderingContext(*this);252 253 250 #if USE(IOSURFACE_CANVAS_BACKING_STORE) || ENABLE(ACCELERATED_2D_CANVAS) 254 251 // Need to make sure a RenderLayer and compositing layer get created for the Canvas … … 306 303 // Need to make sure a RenderLayer and compositing layer get created for the Canvas 307 304 invalidateStyleAndLayerComposition(); 308 309 InspectorInstrumentation::didCreateCanvasRenderingContext(*this);310 305 } 311 306 } -
trunk/Source/WebCore/inspector/InspectorAllInOne.cpp
r218376 r218395 32 32 #include "InspectorApplicationCacheAgent.cpp" 33 33 #include "InspectorCSSAgent.cpp" 34 #include "InspectorCanvasAgent.cpp"35 34 #include "InspectorClient.cpp" 36 35 #include "InspectorController.cpp" -
trunk/Source/WebCore/inspector/InspectorController.cpp
r218376 r218395 39 39 #include "InspectorApplicationCacheAgent.h" 40 40 #include "InspectorCSSAgent.h" 41 #include "InspectorCanvasAgent.h"42 41 #include "InspectorClient.h" 43 42 #include "InspectorDOMAgent.h" … … 185 184 m_agents.append(std::make_unique<InspectorWorkerAgent>(pageContext)); 186 185 187 auto canvasAgentPtr = std::make_unique<InspectorCanvasAgent>(pageContext, pageAgent);188 m_instrumentingAgents->setInspectorCanvasAgent(canvasAgentPtr.get());189 m_agents.append(WTFMove(canvasAgentPtr));190 191 186 ASSERT(m_injectedScriptManager->commandLineAPIHost()); 192 187 if (CommandLineAPIHost* commandLineAPIHost = m_injectedScriptManager->commandLineAPIHost()) { -
trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp
r218376 r218395 41 41 #include "InspectorApplicationCacheAgent.h" 42 42 #include "InspectorCSSAgent.h" 43 #include "InspectorCanvasAgent.h"44 43 #include "InspectorDOMAgent.h" 45 44 #include "InspectorDOMDebuggerAgent.h" … … 63 62 #include "ScriptController.h" 64 63 #include "WebConsoleAgent.h" 65 #include "WebGLRenderingContextBase.h"66 64 #include "WebSocketFrame.h" 67 65 #include <inspector/ConsoleMessage.h> … … 751 749 } 752 750 753 if (InspectorCanvasAgent* canvasAgent = instrumentingAgents.inspectorCanvasAgent())754 canvasAgent->frameNavigated(loader);755 756 751 if (InspectorDOMAgent* domAgent = instrumentingAgents.inspectorDOMAgent()) 757 752 domAgent->didCommitLoad(frame.document()); … … 993 988 } 994 989 #endif 995 996 void InspectorInstrumentation::didCreateCSSCanvasImpl(InstrumentingAgents* instrumentingAgents, HTMLCanvasElement& canvasElement, const String& name)997 {998 if (InspectorCanvasAgent* canvasAgent = instrumentingAgents->inspectorCanvasAgent())999 canvasAgent->didCreateCSSCanvas(canvasElement, name);1000 }1001 1002 void InspectorInstrumentation::didCreateCanvasRenderingContextImpl(InstrumentingAgents* instrumentingAgents, HTMLCanvasElement& canvasElement)1003 {1004 if (InspectorCanvasAgent* canvasAgent = instrumentingAgents->inspectorCanvasAgent())1005 canvasAgent->didCreateCanvasRenderingContext(canvasElement);1006 }1007 990 1008 991 #if ENABLE(WEB_REPLAY) -
trunk/Source/WebCore/inspector/InspectorInstrumentation.h
r218376 r218395 37 37 #include "FormData.h" 38 38 #include "Frame.h" 39 #include "HTMLCanvasElement.h"40 39 #include "HitTestResult.h" 41 40 #include "InspectorController.h" … … 83 82 class ShadowRoot; 84 83 class URL; 85 class WebGLRenderingContextBase;86 84 class WebKitNamedFlow; 87 85 class WorkerInspectorProxy; … … 245 243 static void didHandleMemoryPressure(Page&, Critical); 246 244 #endif 247 248 static void didCreateCSSCanvas(HTMLCanvasElement&, const String&);249 static void didCreateCanvasRenderingContext(HTMLCanvasElement&);250 245 251 246 static void networkStateChanged(Page&); … … 421 416 static void updateApplicationCacheStatusImpl(InstrumentingAgents&, Frame&); 422 417 423 static void didCreateCSSCanvasImpl(InstrumentingAgents*, HTMLCanvasElement&, const String&);424 static void didCreateCanvasRenderingContextImpl(InstrumentingAgents*, HTMLCanvasElement&);425 426 418 static void layerTreeDidChangeImpl(InstrumentingAgents&); 427 419 static void renderLayerDestroyedImpl(InstrumentingAgents&, const RenderLayer&); … … 1182 1174 #endif 1183 1175 1184 inline void InspectorInstrumentation::didCreateCSSCanvas(HTMLCanvasElement& canvasElement, const String& name)1185 {1186 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocument(&canvasElement.document()))1187 didCreateCSSCanvasImpl(instrumentingAgents, canvasElement, name);1188 }1189 1190 inline void InspectorInstrumentation::didCreateCanvasRenderingContext(HTMLCanvasElement& canvasElement)1191 {1192 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocument(&canvasElement.document()))1193 didCreateCanvasRenderingContextImpl(instrumentingAgents, canvasElement);1194 }1195 1196 1176 inline void InspectorInstrumentation::networkStateChanged(Page& page) 1197 1177 { -
trunk/Source/WebCore/inspector/InstrumentingAgents.cpp
r218376 r218395 68 68 m_pageHeapAgent = nullptr; 69 69 m_inspectorDOMDebuggerAgent = nullptr; 70 m_inspectorCanvasAgent = nullptr;71 70 } 72 71 -
trunk/Source/WebCore/inspector/InstrumentingAgents.h
r218376 r218395 45 45 46 46 class InspectorApplicationCacheAgent; 47 class InspectorCanvasAgent;48 47 class InspectorCSSAgent; 49 48 class InspectorDOMAgent; … … 84 83 InspectorPageAgent* inspectorPageAgent() const { return m_inspectorPageAgent; } 85 84 void setInspectorPageAgent(InspectorPageAgent* agent) { m_inspectorPageAgent = agent; } 86 87 InspectorCanvasAgent* inspectorCanvasAgent() const { return m_inspectorCanvasAgent; }88 void setInspectorCanvasAgent(InspectorCanvasAgent* agent) { m_inspectorCanvasAgent = agent; }89 85 90 86 InspectorCSSAgent* inspectorCSSAgent() const { return m_inspectorCSSAgent; } … … 175 171 PageHeapAgent* m_pageHeapAgent { nullptr }; 176 172 InspectorDOMDebuggerAgent* m_inspectorDOMDebuggerAgent { nullptr }; 177 InspectorCanvasAgent* m_inspectorCanvasAgent { nullptr };178 173 }; 179 174 -
trunk/Source/WebInspectorUI/ChangeLog
r218376 r218395 1 2017-06-16 Matt Lewis <jlewis3@apple.com> 2 3 Unreviewed, rolling out r218376. 4 5 The patch cause multiple Layout Test Crashes. 6 7 Reverted changeset: 8 9 "Web Inspector: Instrument 2D/WebGL canvas contexts in the 10 backend" 11 https://bugs.webkit.org/show_bug.cgi?id=172623 12 http://trac.webkit.org/changeset/218376 13 1 14 2017-06-15 Matt Baker <mattbaker@apple.com> 2 15 -
trunk/Source/WebInspectorUI/UserInterface/Base/Main.js
r218376 r218395 96 96 if (InspectorBackend.registerReplayDispatcher) 97 97 InspectorBackend.registerReplayDispatcher(new WebInspector.ReplayObserver); 98 if (InspectorBackend.registerCanvasDispatcher)99 InspectorBackend.registerCanvasDispatcher(new WebInspector.CanvasObserver);100 98 101 99 // Main backend target. … … 139 137 this.replayManager = new WebInspector.ReplayManager; 140 138 this.domDebuggerManager = new WebInspector.DOMDebuggerManager; 141 this.canvasManager = new WebInspector.CanvasManager;142 139 143 140 // Enable the Console Agent after creating the singleton managers. -
trunk/Source/WebInspectorUI/UserInterface/Main.html
r218376 r218395 275 275 <script src="Protocol/ApplicationCacheObserver.js"></script> 276 276 <script src="Protocol/CSSObserver.js"></script> 277 <script src="Protocol/CanvasObserver.js"></script>278 277 <script src="Protocol/ConsoleObserver.js"></script> 279 278 <script src="Protocol/DOMObserver.js"></script> … … 319 318 <script src="Models/CSSStyleSheet.js"></script> 320 319 <script src="Models/CallFrame.js"></script> 321 <script src="Models/Canvas.js"></script>322 320 <script src="Models/Collection.js"></script> 323 321 <script src="Models/CollectionEntry.js"></script> … … 737 735 <script src="Controllers/BreakpointPopoverController.js"></script> 738 736 <script src="Controllers/CSSStyleManager.js"></script> 739 <script src="Controllers/CanvasManager.js"></script>740 737 <script src="Controllers/CodeMirrorColorEditingController.js"></script> 741 738 <script src="Controllers/CodeMirrorCompletionController.js"></script> -
trunk/Source/WebInspectorUI/UserInterface/Test.html
r218376 r218395 72 72 <script src="Protocol/InspectorObserver.js"></script> 73 73 <script src="Protocol/CSSObserver.js"></script> 74 <script src="Protocol/CanvasObserver.js"></script>75 74 <script src="Protocol/ConsoleObserver.js"></script> 76 75 <script src="Protocol/DOMObserver.js"></script> … … 107 106 <script src="Models/CallingContextTree.js"></script> 108 107 <script src="Models/CallingContextTreeNode.js"></script> 109 <script src="Models/Canvas.js"></script>110 108 <script src="Models/Collection.js"></script> 111 109 <script src="Models/CollectionEntry.js"></script> … … 188 186 <script src="Controllers/BreakpointLogMessageLexer.js"></script> 189 187 <script src="Controllers/CSSStyleManager.js"></script> 190 <script src="Controllers/CanvasManager.js"></script>191 188 <script src="Controllers/DOMDebuggerManager.js"></script> 192 189 <script src="Controllers/DOMTreeManager.js"></script> -
trunk/Source/WebInspectorUI/UserInterface/Test/Test.js
r218376 r218395 50 50 if (InspectorBackend.registerReplayDispatcher) 51 51 InspectorBackend.registerReplayDispatcher(new WebInspector.ReplayObserver); 52 InspectorBackend.registerCanvasDispatcher(new WebInspector.CanvasObserver);53 52 54 53 WebInspector.mainTarget = new WebInspector.MainTarget; … … 71 70 this.replayManager = new WebInspector.ReplayManager; 72 71 this.domDebuggerManager = new WebInspector.DOMDebuggerManager; 73 this.canvasManager = new WebInspector.CanvasManager;74 72 75 73 document.addEventListener("DOMContentLoaded", this.contentLoaded);
Note: See TracChangeset
for help on using the changeset viewer.