| 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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 overlaySettings.setScriptEnabled(true); | 552 overlaySettings.setScriptEnabled(true); |
| 553 overlaySettings.setPluginsEnabled(false); | 553 overlaySettings.setPluginsEnabled(false); |
| 554 overlaySettings.setLoadsImagesAutomatically(true); | 554 overlaySettings.setLoadsImagesAutomatically(true); |
| 555 // FIXME: http://crbug.com/363843. Inspector should probably create its | 555 // FIXME: http://crbug.com/363843. Inspector should probably create its |
| 556 // own graphics layers and attach them to the tree rather than going | 556 // own graphics layers and attach them to the tree rather than going |
| 557 // through some non-composited paint function. | 557 // through some non-composited paint function. |
| 558 overlaySettings.setAcceleratedCompositingEnabled(false); | 558 overlaySettings.setAcceleratedCompositingEnabled(false); |
| 559 | 559 |
| 560 LocalFrame* frame = LocalFrame::create(&dummyFrameLoaderClient, | 560 LocalFrame* frame = LocalFrame::create(&dummyFrameLoaderClient, |
| 561 &m_overlayPage->frameHost(), 0); | 561 &m_overlayPage->frameHost(), 0); |
| 562 frame->setView(FrameView::create(frame)); | 562 frame->setView(FrameView::create(*frame)); |
| 563 frame->init(); | 563 frame->init(); |
| 564 FrameLoader& loader = frame->loader(); | 564 FrameLoader& loader = frame->loader(); |
| 565 frame->view()->setCanHaveScrollbars(false); | 565 frame->view()->setCanHaveScrollbars(false); |
| 566 frame->view()->setTransparent(true); | 566 frame->view()->setTransparent(true); |
| 567 | 567 |
| 568 const WebData& overlayPageHTMLResource = | 568 const WebData& overlayPageHTMLResource = |
| 569 Platform::current()->loadResource("InspectorOverlayPage.html"); | 569 Platform::current()->loadResource("InspectorOverlayPage.html"); |
| 570 RefPtr<SharedBuffer> data = SharedBuffer::create( | 570 RefPtr<SharedBuffer> data = SharedBuffer::create( |
| 571 overlayPageHTMLResource.data(), overlayPageHTMLResource.size()); | 571 overlayPageHTMLResource.data(), overlayPageHTMLResource.size()); |
| 572 loader.load(FrameLoadRequest( | 572 loader.load(FrameLoadRequest( |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 867 !node->isElementNode() || !node->ownerDocument()->isActive() || | 867 !node->isElementNode() || !node->ownerDocument()->isActive() || |
| 868 !m_cssAgent || !m_domAgent) | 868 !m_cssAgent || !m_domAgent) |
| 869 return; | 869 return; |
| 870 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgent, | 870 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgent, |
| 871 &overlayMainFrame()->script()); | 871 &overlayMainFrame()->script()); |
| 872 toChromeClientImpl(m_frameImpl->frame()->host()->chromeClient()) | 872 toChromeClientImpl(m_frameImpl->frame()->host()->chromeClient()) |
| 873 .setCursorOverridden(true); | 873 .setCursorOverridden(true); |
| 874 } | 874 } |
| 875 | 875 |
| 876 } // namespace blink | 876 } // namespace blink |
| OLD | NEW |