RESOLVED FIXED Bug 93100
Remove minimum window size for PagePopup
https://bugs.webkit.org/show_bug.cgi?id=93100
Summary Remove minimum window size for PagePopup
Keishi Hattori
Reported 2012-08-03 05:38:41 PDT
Right now PagePopup cannot be resized below 100x100 pixels.
Attachments
Patch (28.91 KB, patch)
2012-08-03 06:03 PDT, Keishi Hattori
no flags
Patch (27.10 KB, patch)
2012-08-05 23:18 PDT, Keishi Hattori
no flags
Patch (24.89 KB, patch)
2012-08-06 00:12 PDT, Keishi Hattori
no flags
Keishi Hattori
Comment 1 2012-08-03 06:03:02 PDT
Kent Tamura
Comment 2 2012-08-03 07:01:12 PDT
Comment on attachment 156343 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=156343&action=review > Source/WebCore/page/Chrome.cpp:567 > +#if ENABLE(PAGE_POPUP) > + if (DOMWindowPagePopup::from(window)) > + return FloatSize(0, 0); > +#endif > + return FloatSize(100, 100); I feel this is a violation for the concept of Supplement. Checking existence of a Supplement in a class unrelated to the Supplement looks wrong. We should - Add minimumSizeForWindow to ChromeClient. Not Chrome. I think its's ok that ChromeClient.h has a default implementation which reutrns FloatSize(100,100). - PagePopupChromeClient in WebPagePopupImpl.cpp overrides it.
Keishi Hattori
Comment 3 2012-08-05 23:18:30 PDT
Kent Tamura
Comment 4 2012-08-05 23:23:20 PDT
Comment on attachment 156602 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=156602&action=review > Source/WebCore/page/Chrome.cpp:61 > +#if ENABLE(PAGE_POPUP) > +#include "DOMWindowPagePopup.h" > +#endif > + unnecessary change > Source/WebCore/page/Chrome.h:44 > + class DOMWindow; unnecessary change > Source/WebCore/page/ChromeClient.h:354 > + virtual FloatSize minimumSizeForWindow() const { return FloatSize(100, 100); }; nit: I prefer 'minimumWindowSize'. > Source/WebCore/page/DOMWindow.cpp:342 > + FloatSize minimumSize = page ? m_frame->page()->chrome()->minimumSizeForWindow() : FloatSize(100, 100); We can call ChromeClient::minimumSizeForWindow() here. So we don't need to change Chrome.{cpp.h} in this patch. > Source/WebKit/chromium/src/WebPagePopupImpl.cpp:126 > + virtual FloatSize minimumSizeForWindow() const Please add OVERRIDE. > Source/WebKit/chromium/src/WebPagePopupImpl.cpp:212 > + ASSERT(frame->existingDOMWindow()); > + DOMWindowPagePopup::install(frame->existingDOMWindow(), m_popupClient); > + This change is unnecessary.
Keishi Hattori
Comment 5 2012-08-06 00:12:22 PDT
Kent Tamura
Comment 6 2012-08-06 00:17:30 PDT
Comment on attachment 156612 [details] Patch ok
WebKit Review Bot
Comment 7 2012-08-06 04:38:07 PDT
Comment on attachment 156612 [details] Patch Clearing flags on attachment: 156612 Committed r124753: <http://trac.webkit.org/changeset/124753>
WebKit Review Bot
Comment 8 2012-08-06 04:38:10 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.