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

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
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 flush();
617 flush();
618 } 621 }
619 622
620 WebString WebDevToolsAgent::inspectorProtocolVersion() 623 WebString WebDevToolsAgent::inspectorProtocolVersion()
621 { 624 {
622 return WebCore::inspectorProtocolVersion(); 625 return WebCore::inspectorProtocolVersion();
623 } 626 }
624 627
625 bool WebDevToolsAgent::supportsInspectorProtocolVersion(const WebString& version ) 628 bool WebDevToolsAgent::supportsInspectorProtocolVersion(const WebString& version )
626 { 629 {
627 return WebCore::supportsInspectorProtocolVersion(version); 630 return WebCore::supportsInspectorProtocolVersion(version);
(...skipping 20 matching lines...) Expand all
648 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kProfiler_startCmd) 651 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kProfiler_startCmd)
649 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kProfiler_stopCmd); 652 || commandName == InspectorBackendDispatcher::commandName(InspectorBacke ndDispatcher::kProfiler_stopCmd);
650 } 653 }
651 654
652 void WebDevToolsAgent::processPendingMessages() 655 void WebDevToolsAgent::processPendingMessages()
653 { 656 {
654 PageScriptDebugServer::shared().runPendingTasks(); 657 PageScriptDebugServer::shared().runPendingTasks();
655 } 658 }
656 659
657 } // namespace blink 660 } // namespace blink
OLDNEW
« Source/core/inspector/InspectorCSSAgent.cpp ('K') | « Source/devtools/front_end/CSSStyleModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698