RESOLVED FIXED 65359
Make form validation bubble fit with Chrome UI style
https://bugs.webkit.org/show_bug.cgi?id=65359
Summary Make form validation bubble fit with Chrome UI style
Kent Tamura
Reported 2011-07-28 21:58:12 PDT
http://code.google.com/p/chromium/issues/detail?id=88219 The appearance change was requested by Chrome UI team.
Attachments
Patch (94.26 KB, patch)
2011-07-28 23:52 PDT, Kent Tamura
no flags
Patch 2 (96.01 KB, patch)
2011-07-29 04:33 PDT, Kent Tamura
morrita: review+
Kent Tamura
Comment 1 2011-07-28 23:52:01 PDT
Hajime Morrita
Comment 2 2011-07-29 00:21:49 PDT
Comment on attachment 102335 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=102335&action=review I think it would be better to use dump-as-markup + pixel test instead of using layout test because dump-as-markup now supports shadows. > Source/WebCore/html/ValidationMessage.cpp:171 > Could you make ASSERT_NO_EXCEPTION a default parameter for setShadowPseudId() ? The macro is originally made for default parameters and This is a good opportunity to adopt it. For much-used API like appendChild(), It's better to do it separately though.
Kent Tamura
Comment 3 2011-07-29 01:00:37 PDT
Comment on attachment 102335 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=102335&action=review >> Source/WebCore/html/ValidationMessage.cpp:171 >> > > Could you make ASSERT_NO_EXCEPTION a default parameter for setShadowPseudId() ? > The macro is originally made for default parameters and This is a good opportunity to adopt it. > For much-used API like appendChild(), It's better to do it separately though. It should be a separated patch. I have filed https://bugs.webkit.org/show_bug.cgi?id=65363.
Hajime Morrita
Comment 4 2011-07-29 01:03:22 PDT
> It should be a separated patch. > I have filed https://bugs.webkit.org/show_bug.cgi?id=65363. That's true. r+ed.
Kent Tamura
Comment 5 2011-07-29 04:33:26 PDT
Created attachment 102344 [details] Patch 2 Omit ExceptionCode parameter of setShadowPseudoId()
Darin Fisher (:fishd, Google)
Comment 6 2011-07-29 15:27:48 PDT
It seems like there should be a WebKit API to ask the embedder to draw this bubble. That way we can use exactly the same code to render this bubble that Chrome uses to render its other bubbles. Also, we would then have a chance to solve the problem that this bubble is clipped by the viewport of the browser window.
Kent Tamura
Comment 7 2011-08-02 18:41:05 PDT
(In reply to comment #6) > It seems like there should be a WebKit API to ask the embedder to draw this bubble. That way we can use exactly the same code to render this bubble that Chrome uses to render its other bubbles. > > Also, we would then have a chance to solve the problem that this bubble is clipped by the viewport of the browser window. Let's discuss it separately in http://crbug.com/90958 because it will make drawbacks. I'd like to fix only the style issue for now.
Darin Fisher (:fishd, Google)
Comment 8 2011-08-03 09:39:51 PDT
(In reply to comment #7) > (In reply to comment #6) > > It seems like there should be a WebKit API to ask the embedder to draw this bubble. That way we can use exactly the same code to render this bubble that Chrome uses to render its other bubbles. > > > > Also, we would then have a chance to solve the problem that this bubble is clipped by the viewport of the browser window. > > Let's discuss it separately in http://crbug.com/90958 because it will make drawbacks. I'd like to fix only the style issue for now. Agreed. This is a good improvement already.
Hajime Morrita
Comment 9 2011-08-07 23:26:59 PDT
Comment on attachment 102344 [details] Patch 2 View in context: https://bugs.webkit.org/attachment.cgi?id=102344&action=review Looks OK. It would be great to convert these test to reftests because both visual representation and DOM structures matter for shadow related code. > Source/WebCore/ChangeLog:3 > + Make form validation bubble fit with Chrome UI style [Chromium] prefix?
Kent Tamura
Comment 10 2011-08-08 00:25:49 PDT
Kent Tamura
Comment 11 2011-08-08 00:27:31 PDT
(In reply to comment #9) > > Source/WebCore/ChangeLog:3 > > + Make form validation bubble fit with Chrome UI style > > [Chromium] prefix? I added it and landed. I wondered if I should have prepend it because this patch changes non-Chromium part.
Note You need to log in before you can comment on or make changes to this bug.