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

Side by Side Diff: third_party/WebKit/Source/web/InspectorOverlay.cpp

Issue 2151933003: Change WTF::TemporaryChange to be an alias for AutoReset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 m_pageOverlay = PageOverlay::create(m_webViewImpl, new InspectorPageOver layDelegate(*this)); 222 m_pageOverlay = PageOverlay::create(m_webViewImpl, new InspectorPageOver layDelegate(*this));
223 223
224 m_pageOverlay->update(); 224 m_pageOverlay->update();
225 } 225 }
226 226
227 void InspectorOverlay::updateAllLifecyclePhases() 227 void InspectorOverlay::updateAllLifecyclePhases()
228 { 228 {
229 if (isEmpty()) 229 if (isEmpty())
230 return; 230 return;
231 231
232 TemporaryChange<bool> scoped(m_inLayout, true); 232 TemporaryChange<bool> scoped(&m_inLayout, true);
233 if (m_needsUpdate) { 233 if (m_needsUpdate) {
234 m_needsUpdate = false; 234 m_needsUpdate = false;
235 rebuildOverlayPage(); 235 rebuildOverlayPage();
236 } 236 }
237 overlayMainFrame()->view()->updateAllLifecyclePhases(); 237 overlayMainFrame()->view()->updateAllLifecyclePhases();
238 } 238 }
239 239
240 bool InspectorOverlay::handleInputEvent(const WebInputEvent& inputEvent) 240 bool InspectorOverlay::handleInputEvent(const WebInputEvent& inputEvent)
241 { 241 {
242 bool handled = false; 242 bool handled = false;
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 793
794 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node) 794 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node)
795 { 795 {
796 if (m_inspectMode != InspectorDOMAgent::ShowLayoutEditor || !node || !node-> isElementNode() || !node->ownerDocument()->isActive() || !m_cssAgent || !m_domAg ent) 796 if (m_inspectMode != InspectorDOMAgent::ShowLayoutEditor || !node || !node-> isElementNode() || !node->ownerDocument()->isActive() || !m_cssAgent || !m_domAg ent)
797 return; 797 return;
798 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgen t, &overlayMainFrame()->script()); 798 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgen t, &overlayMainFrame()->script());
799 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde n(true); 799 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde n(true);
800 } 800 }
801 801
802 } // namespace blink 802 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698