OLD | NEW |
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "core/inspector/InspectorOverlayHost.h" | 43 #include "core/inspector/InspectorOverlayHost.h" |
44 #include "core/inspector/LayoutEditor.h" | 44 #include "core/inspector/LayoutEditor.h" |
45 #include "core/layout/api/LayoutViewItem.h" | 45 #include "core/layout/api/LayoutViewItem.h" |
46 #include "core/loader/EmptyClients.h" | 46 #include "core/loader/EmptyClients.h" |
47 #include "core/loader/FrameLoadRequest.h" | 47 #include "core/loader/FrameLoadRequest.h" |
48 #include "core/page/ChromeClient.h" | 48 #include "core/page/ChromeClient.h" |
49 #include "core/page/Page.h" | 49 #include "core/page/Page.h" |
50 #include "platform/ScriptForbiddenScope.h" | 50 #include "platform/ScriptForbiddenScope.h" |
51 #include "platform/graphics/GraphicsContext.h" | 51 #include "platform/graphics/GraphicsContext.h" |
52 #include "platform/graphics/paint/CullRect.h" | 52 #include "platform/graphics/paint/CullRect.h" |
53 #include "platform/v8_inspector/public/V8InspectorSession.h" | |
54 #include "public/platform/Platform.h" | 53 #include "public/platform/Platform.h" |
55 #include "public/platform/WebData.h" | 54 #include "public/platform/WebData.h" |
56 #include "web/PageOverlay.h" | 55 #include "web/PageOverlay.h" |
57 #include "web/WebInputEventConversion.h" | 56 #include "web/WebInputEventConversion.h" |
58 #include "web/WebLocalFrameImpl.h" | 57 #include "web/WebLocalFrameImpl.h" |
59 #include "web/WebViewImpl.h" | 58 #include "web/WebViewImpl.h" |
60 #include "wtf/AutoReset.h" | 59 #include "wtf/AutoReset.h" |
61 #include <memory> | 60 #include <memory> |
62 #include <v8.h> | 61 #include <v8.h> |
63 | 62 |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 | 811 |
813 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node) | 812 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node) |
814 { | 813 { |
815 if (m_inspectMode != InspectorDOMAgent::ShowLayoutEditor || !node || !node->
isElementNode() || !node->ownerDocument()->isActive() || !m_cssAgent || !m_domAg
ent) | 814 if (m_inspectMode != InspectorDOMAgent::ShowLayoutEditor || !node || !node->
isElementNode() || !node->ownerDocument()->isActive() || !m_cssAgent || !m_domAg
ent) |
816 return; | 815 return; |
817 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgen
t, &overlayMainFrame()->script()); | 816 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgen
t, &overlayMainFrame()->script()); |
818 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde
n(true); | 817 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde
n(true); |
819 } | 818 } |
820 | 819 |
821 } // namespace blink | 820 } // namespace blink |
OLD | NEW |