| 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 | 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 17 matching lines...) Expand all  Loading... | 
| 28 | 28 | 
| 29 #include "CSSPropertyNames.h" | 29 #include "CSSPropertyNames.h" | 
| 30 #include "CSSValueKeywords.h" | 30 #include "CSSValueKeywords.h" | 
| 31 #include "bindings/v8/ExceptionStatePlaceholder.h" | 31 #include "bindings/v8/ExceptionStatePlaceholder.h" | 
| 32 #include "core/html/HTMLIFrameElement.h" | 32 #include "core/html/HTMLIFrameElement.h" | 
| 33 #include "core/loader/DocumentLoader.h" | 33 #include "core/loader/DocumentLoader.h" | 
| 34 #include "core/loader/DocumentWriter.h" | 34 #include "core/loader/DocumentWriter.h" | 
| 35 #include "core/loader/FrameLoader.h" | 35 #include "core/loader/FrameLoader.h" | 
| 36 #include "core/frame/Frame.h" | 36 #include "core/frame/Frame.h" | 
| 37 #include "core/page/PagePopup.h" | 37 #include "core/page/PagePopup.h" | 
| 38 #include "core/page/PagePopupClient.h" |  | 
| 39 #include "core/page/PagePopupController.h" | 38 #include "core/page/PagePopupController.h" | 
| 40 #include "platform/Timer.h" | 39 #include "platform/Timer.h" | 
| 41 | 40 | 
| 42 namespace WebCore { | 41 namespace WebCore { | 
| 43 | 42 | 
| 44 class MockPagePopup : public PagePopup, public RefCounted<MockPagePopup> { | 43 class MockPagePopup : public PagePopup, public RefCounted<MockPagePopup> { | 
| 45 public: | 44 public: | 
| 46     static PassRefPtr<MockPagePopup> create(PagePopupClient*, const IntRect& ori
     ginBoundsInRootView, Frame*); | 45     static PassRefPtr<MockPagePopup> create(PagePopupClient*, const IntRect& ori
     ginBoundsInRootView, Frame*); | 
| 47     virtual ~MockPagePopup(); | 46     virtual ~MockPagePopup(); | 
| 48     void closeLater(); | 47     void closeLater(); | 
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 134 { | 133 { | 
| 135     if (!popup || popup != m_mockPagePopup.get()) | 134     if (!popup || popup != m_mockPagePopup.get()) | 
| 136         return; | 135         return; | 
| 137     m_mockPagePopup->closeLater(); | 136     m_mockPagePopup->closeLater(); | 
| 138     m_mockPagePopup.clear(); | 137     m_mockPagePopup.clear(); | 
| 139     m_pagePopupController->clearPagePopupClient(); | 138     m_pagePopupController->clearPagePopupClient(); | 
| 140     m_pagePopupController.clear(); | 139     m_pagePopupController.clear(); | 
| 141 } | 140 } | 
| 142 | 141 | 
| 143 } | 142 } | 
| OLD | NEW | 
|---|