Bug 80564

Summary: Do not refer to resutlsButtonElement and cancelButtonElement to compute paddings of search popups
Product: WebKit Reporter: Kent Tamura <tkent>
Component: FormsAssignee: Kent Tamura <tkent>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, haraken, morrita
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 80479    
Attachments:
Description Flags
Patch morrita: review+

Kent Tamura
Reported 2012-03-07 20:19:59 PST
Do not refer to resutlsButtonElement and cancelButtonElement to compute paddings of search popups
Attachments
Patch (2.96 KB, patch)
2012-03-07 20:27 PST, Kent Tamura
morrita: review+
Kent Tamura
Comment 1 2012-03-07 20:27:14 PST
Kentaro Hara
Comment 2 2012-03-07 20:33:01 PST
Comment on attachment 130757 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=130757&action=review The change looks OK, but I'll delegate the review to another reviewer since I am not familiar with the rendering text. > Source/WebCore/ChangeLog:11 > + No behavior change. Isn't there any existing test that _can_ be affected by this change, if the change were wrong? I wanted to see "Test: xxx.html (No change behavior)", to confirm that the change is correct.
Kent Tamura
Comment 3 2012-03-07 20:36:02 PST
Comment on attachment 130757 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=130757&action=review >> Source/WebCore/ChangeLog:11 >> + No behavior change. > > Isn't there any existing test that _can_ be affected by this change, if the change were wrong? I wanted to see "Test: xxx.html (No change behavior)", to confirm that the change is correct. Unfortunately, none. We can't check the appearance of search popup menus because DRT can't capture them.
Hajime Morrita
Comment 4 2012-03-07 20:41:43 PST
Comment on attachment 130757 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=130757&action=review >>> Source/WebCore/ChangeLog:11 >>> + No behavior change. >> >> Isn't there any existing test that _can_ be affected by this change, if the change were wrong? I wanted to see "Test: xxx.html (No change behavior)", to confirm that the change is correct. > > Unfortunately, none. We can't check the appearance of search popup menus because DRT can't capture them. We could grab the shadow tree using internals.shadowRoot() and dump its RenderTree using internals.elementRenderTreeAsText() You can make a reference DOM tree and compare the render-tree of the shadow tree and the referende DOM.
Kent Tamura
Comment 5 2012-03-07 20:47:07 PST
Comment on attachment 130757 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=130757&action=review >>>> Source/WebCore/ChangeLog:11 >>>> + No behavior change. >>> >>> Isn't there any existing test that _can_ be affected by this change, if the change were wrong? I wanted to see "Test: xxx.html (No change behavior)", to confirm that the change is correct. >> >> Unfortunately, none. We can't check the appearance of search popup menus because DRT can't capture them. > > We could grab the shadow tree using internals.shadowRoot() and dump its RenderTree using internals.elementRenderTreeAsText() > You can make a reference DOM tree and compare the render-tree of the shadow tree and the referende DOM. It is not related to this patch. This patch doesn't change any renderer metrics or any DOM values. RenderTextControlSingleLine::clientInsetRight() and clientInsetLeft() are passed to platform-specific popup-menu implementation via ChromeClient::createSearchPopupMenu(). DRT doesn't have a way to get these values.
Hajime Morrita
Comment 6 2012-03-07 21:22:58 PST
Comment on attachment 130757 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=130757&action=review >>>>> Source/WebCore/ChangeLog:11 >>>>> + No behavior change. >>>> >>>> Isn't there any existing test that _can_ be affected by this change, if the change were wrong? I wanted to see "Test: xxx.html (No change behavior)", to confirm that the change is correct. >>> >>> Unfortunately, none. We can't check the appearance of search popup menus because DRT can't capture them. >> >> We could grab the shadow tree using internals.shadowRoot() and dump its RenderTree using internals.elementRenderTreeAsText() >> You can make a reference DOM tree and compare the render-tree of the shadow tree and the referende DOM. > > It is not related to this patch. > This patch doesn't change any renderer metrics or any DOM values. RenderTextControlSingleLine::clientInsetRight() and clientInsetLeft() are passed to platform-specific popup-menu implementation via ChromeClient::createSearchPopupMenu(). DRT doesn't have a way to get these values. Ah, got it. It would be nice if we have a mock for ChromeClient. But it's a different story...
Kent Tamura
Comment 7 2012-03-07 21:31:46 PST
Dimitri Glazkov (Google)
Comment 8 2012-03-08 08:41:47 PST
This is cool.
Note You need to log in before you can comment on or make changes to this bug.