Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: Source/web/WebDevToolsAgentImpl.cpp

Issue 201363002: DevTools: defer styles delta calculation to until the end of the task. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/StylesSidebarPane.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010-2011 Google Inc. All rights reserved. 2 * Copyright (C) 2010-2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 } 598 }
599 599
600 void WebDevToolsAgentImpl::evaluateInWebInspector(long callId, const WebString& script) 600 void WebDevToolsAgentImpl::evaluateInWebInspector(long callId, const WebString& script)
601 { 601 {
602 InspectorController* ic = inspectorController(); 602 InspectorController* ic = inspectorController();
603 ic->evaluateForTestInFrontend(callId, script); 603 ic->evaluateForTestInFrontend(callId, script);
604 } 604 }
605 605
606 void WebDevToolsAgentImpl::willProcessTask() 606 void WebDevToolsAgentImpl::willProcessTask()
607 { 607 {
608 if (!m_attached)
609 return;
608 if (InspectorController* ic = inspectorController()) 610 if (InspectorController* ic = inspectorController())
609 ic->willProcessTask(); 611 ic->willProcessTask();
610 } 612 }
611 613
612 void WebDevToolsAgentImpl::didProcessTask() 614 void WebDevToolsAgentImpl::didProcessTask()
613 { 615 {
616 if (!m_attached)
617 return;
614 if (InspectorController* ic = inspectorController()) 618 if (InspectorController* ic = inspectorController())
615 ic->didProcessTask(); 619 ic->didProcessTask();
616 if (m_attached) 620 if (m_attached)
vsevik 2014/03/17 12:49:28 remove
617 flush(); 621 flush();
618 } 622 }
619 623
620 WebString WebDevToolsAgent::inspectorProtocolVersion() 624 WebString WebDevToolsAgent::inspectorProtocolVersion()
621 { 625 {
622 return WebCore::inspectorProtocolVersion(); 626 return WebCore::inspectorProtocolVersion();
623 } 627 }
624 628
625 bool WebDevToolsAgent::supportsInspectorProtocolVersion(const WebString& version ) 629 bool WebDevToolsAgent::supportsInspectorProtocolVersion(const WebString& version )
626 { 630 {
(...skipping 21 matching lines...) Expand all
648 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kProfiler_startCmd) 652 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kProfiler_startCmd)
649 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kProfiler_stopCmd); 653 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kProfiler_stopCmd);
650 } 654 }
651 655
652 void WebDevToolsAgent::processPendingMessages() 656 void WebDevToolsAgent::processPendingMessages()
653 { 657 {
654 PageScriptDebugServer::shared().runPendingTasks(); 658 PageScriptDebugServer::shared().runPendingTasks();
655 } 659 }
656 660
657 } // namespace blink 661 } // namespace blink
OLDNEW
« no previous file with comments | « Source/devtools/front_end/StylesSidebarPane.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698