[Webkit-unassigned] [Bug 102122] [EFL][WK2] New window size should consult the window attributes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 13 14:03:09 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=102122
--- Comment #3 from Yael <yael at webkit.org> 2012-11-13 14:04:55 PST ---
(In reply to comment #2)
> (From update of attachment 173962 [details])
Thanks for the review :)
> View in context: https://bugs.webkit.org/attachment.cgi?id=173962&action=review
>
> Nice!
>
> > Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp:841
> > + WKRetainPtr<WKStringRef> widthStr(AdoptWK, WKStringCreateWithUTF8CString("width"));
> > + WKRetainPtr<WKStringRef> heightStr(AdoptWK, WKStringCreateWithUTF8CString("height"));
> > +
>
> Maybe a comment that we don't do everything here? for showModalDialog are they also called width and height or dialogWidth etc?
>
The dictionary is created in WebUIClient::createNewPage(), and always uses "width" and "height".
> > Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp:842
> > + int width = 0;
>
> unsigned?
>
ok
> > Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp:846
> > + if (ref)
> > + width = WKDoubleGetValue(static_cast<WKDoubleRef>(ref));
>
> unsigned width = ref ? WKDoubleGetValue(static_cast<WKDoubleRef>(ref)) : 0 ?
>
> > Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp:852
> > + width = std::max(width, 0);
> > + height = std::max(height, 0);
>
> WebKit makes sure these are always bigger than 100px. You could assert
WebKit does that only if a value was specified. But you are right, I will never get a negative value here.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list