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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 m_frame = LocalFrame::create(m_frameLoaderClient.get(), &m_page->frameHost()
, 0); | 74 m_frame = LocalFrame::create(m_frameLoaderClient.get(), &m_page->frameHost()
, 0); |
75 m_frame->setView(FrameView::create(m_frame.get(), initialViewSize)); | 75 m_frame->setView(FrameView::create(m_frame.get(), initialViewSize)); |
76 m_frame->init(); | 76 m_frame->init(); |
77 } | 77 } |
78 | 78 |
79 DummyPageHolder::~DummyPageHolder() | 79 DummyPageHolder::~DummyPageHolder() |
80 { | 80 { |
81 m_page->willBeDestroyed(); | 81 m_page->willBeDestroyed(); |
82 m_page.clear(); | 82 m_page.clear(); |
83 #if !ENABLE(OILPAN) | |
84 ASSERT(m_frame->hasOneRef()); | |
85 #endif | |
86 m_frame.clear(); | 83 m_frame.clear(); |
87 } | 84 } |
88 | 85 |
89 Page& DummyPageHolder::page() const | 86 Page& DummyPageHolder::page() const |
90 { | 87 { |
91 return *m_page; | 88 return *m_page; |
92 } | 89 } |
93 | 90 |
94 LocalFrame& DummyPageHolder::frame() const | 91 LocalFrame& DummyPageHolder::frame() const |
95 { | 92 { |
96 ASSERT(m_frame); | 93 ASSERT(m_frame); |
97 return *m_frame; | 94 return *m_frame; |
98 } | 95 } |
99 | 96 |
100 FrameView& DummyPageHolder::frameView() const | 97 FrameView& DummyPageHolder::frameView() const |
101 { | 98 { |
102 return *m_frame->view(); | 99 return *m_frame->view(); |
103 } | 100 } |
104 | 101 |
105 Document& DummyPageHolder::document() const | 102 Document& DummyPageHolder::document() const |
106 { | 103 { |
107 return *m_frame->domWindow()->document(); | 104 return *m_frame->domWindow()->document(); |
108 } | 105 } |
109 | 106 |
110 } // namespace blink | 107 } // namespace blink |
OLD | NEW |