| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, Google Inc. All rights reserved. | 2 * Copyright (c) 2013, 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // FIXME: http://crbug.com/363843. This needs to find a better way to | 76 // FIXME: http://crbug.com/363843. This needs to find a better way to |
| 77 // not create graphics layers. | 77 // not create graphics layers. |
| 78 settings.setAcceleratedCompositingEnabled(false); | 78 settings.setAcceleratedCompositingEnabled(false); |
| 79 if (settingOverrider) | 79 if (settingOverrider) |
| 80 (*settingOverrider)(settings); | 80 (*settingOverrider)(settings); |
| 81 | 81 |
| 82 m_frameLoaderClient = frameLoaderClient; | 82 m_frameLoaderClient = frameLoaderClient; |
| 83 if (!m_frameLoaderClient) | 83 if (!m_frameLoaderClient) |
| 84 m_frameLoaderClient = EmptyFrameLoaderClient::create(); | 84 m_frameLoaderClient = EmptyFrameLoaderClient::create(); |
| 85 | 85 |
| 86 m_frame = LocalFrame::create(m_frameLoaderClient.get(), &m_page->frameHost()
, 0); | 86 m_frame = LocalFrame::create(m_frameLoaderClient.get(), &m_page->frameHost()
, nullptr); |
| 87 m_frame->setView(FrameView::create(m_frame.get(), initialViewSize)); | 87 m_frame->setView(FrameView::create(m_frame.get(), initialViewSize)); |
| 88 m_frame->view()->page()->frameHost().visualViewport().setSize(initialViewSiz
e); | 88 m_frame->view()->page()->frameHost().visualViewport().setSize(initialViewSiz
e); |
| 89 m_frame->init(); | 89 m_frame->init(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 DummyPageHolder::~DummyPageHolder() | 92 DummyPageHolder::~DummyPageHolder() |
| 93 { | 93 { |
| 94 m_page->willBeDestroyed(); | 94 m_page->willBeDestroyed(); |
| 95 m_page.clear(); | 95 m_page.clear(); |
| 96 m_frame.clear(); | 96 m_frame.clear(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 111 { | 111 { |
| 112 return *m_frame->view(); | 112 return *m_frame->view(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 Document& DummyPageHolder::document() const | 115 Document& DummyPageHolder::document() const |
| 116 { | 116 { |
| 117 return *m_frame->domWindow()->document(); | 117 return *m_frame->domWindow()->document(); |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace blink | 120 } // namespace blink |
| OLD | NEW |