OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 306 |
307 provideContextFeaturesTo(*m_page, WTF::makeUnique<PagePopupFeaturesClient>()); | 307 provideContextFeaturesTo(*m_page, WTF::makeUnique<PagePopupFeaturesClient>()); |
308 DEFINE_STATIC_LOCAL(LocalFrameClient, emptyLocalFrameClient, | 308 DEFINE_STATIC_LOCAL(LocalFrameClient, emptyLocalFrameClient, |
309 (EmptyLocalFrameClient::create())); | 309 (EmptyLocalFrameClient::create())); |
310 LocalFrame* frame = LocalFrame::create(&emptyLocalFrameClient, m_page, 0); | 310 LocalFrame* frame = LocalFrame::create(&emptyLocalFrameClient, m_page, 0); |
311 frame->setPagePopupOwner(m_popupClient->ownerElement()); | 311 frame->setPagePopupOwner(m_popupClient->ownerElement()); |
312 frame->setView(FrameView::create(*frame)); | 312 frame->setView(FrameView::create(*frame)); |
313 frame->init(); | 313 frame->init(); |
314 frame->view()->setParentVisible(true); | 314 frame->view()->setParentVisible(true); |
315 frame->view()->setSelfVisible(true); | 315 frame->view()->setSelfVisible(true); |
316 frame->view()->setTransparent(false); | |
317 if (AXObjectCache* cache = | 316 if (AXObjectCache* cache = |
318 m_popupClient->ownerElement().document().existingAXObjectCache()) | 317 m_popupClient->ownerElement().document().existingAXObjectCache()) |
319 cache->childrenChanged(&m_popupClient->ownerElement()); | 318 cache->childrenChanged(&m_popupClient->ownerElement()); |
320 | 319 |
321 DCHECK(frame->domWindow()); | 320 DCHECK(frame->domWindow()); |
322 PagePopupSupplement::install(*frame, *this, m_popupClient); | 321 PagePopupSupplement::install(*frame, *this, m_popupClient); |
323 DCHECK_EQ(m_popupClient->ownerElement().document().existingAXObjectCache(), | 322 DCHECK_EQ(m_popupClient->ownerElement().document().existingAXObjectCache(), |
324 frame->document()->existingAXObjectCache()); | 323 frame->document()->existingAXObjectCache()); |
325 | 324 |
326 initializeLayerTreeView(); | 325 initializeLayerTreeView(); |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 // A WebPagePopupImpl instance usually has two references. | 587 // A WebPagePopupImpl instance usually has two references. |
589 // - One owned by the instance itself. It represents the visible widget. | 588 // - One owned by the instance itself. It represents the visible widget. |
590 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the | 589 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the |
591 // WebPagePopupImpl to close. | 590 // WebPagePopupImpl to close. |
592 // We need them because the closing operation is asynchronous and the widget | 591 // We need them because the closing operation is asynchronous and the widget |
593 // can be closed while the WebViewImpl is unaware of it. | 592 // can be closed while the WebViewImpl is unaware of it. |
594 return adoptRef(new WebPagePopupImpl(client)).leakRef(); | 593 return adoptRef(new WebPagePopupImpl(client)).leakRef(); |
595 } | 594 } |
596 | 595 |
597 } // namespace blink | 596 } // namespace blink |
OLD | NEW |