RESOLVED FIXED 94595
[EFL] Range input ignores padding
https://bugs.webkit.org/show_bug.cgi?id=94595
Summary [EFL] Range input ignores padding
Thiago Marcos P. Santos
Reported 2012-08-21 06:45:15 PDT
fast/forms/range/range-hit-test-with-padding.html is an easy way to reproduce this bug. Not matter the size you put on the padding, the range input looks the same.
Attachments
Patch (337.38 KB, patch)
2012-08-27 05:38 PDT, Thiago Marcos P. Santos
no flags
Patch (357.99 KB, patch)
2012-08-27 08:24 PDT, Thiago Marcos P. Santos
no flags
Patch (326.05 KB, patch)
2012-08-28 03:02 PDT, Thiago Marcos P. Santos
no flags
Kenneth Rohde Christiansen
Comment 1 2012-08-21 06:49:04 PDT
The padding is supposed to apply to the area the slider thumb can be moved. = padding - movable area width:100px; padding-left:30px; padding-right:20px ie. [===-----==] width:10px; padding: 0 200px; ie. [--------------------]
Kenneth Rohde Christiansen
Comment 2 2012-08-21 06:49:41 PDT
Make that width:10px; padding: 0 200px; ie. [========================================]
Thiago Marcos P. Santos
Comment 3 2012-08-27 05:38:51 PDT
Kenneth Rohde Christiansen
Comment 4 2012-08-27 05:54:39 PDT
Comment on attachment 160700 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=160700&action=review Who is the right guy for reviewing the Edje code? > Source/WebCore/platform/efl/RenderThemeEfl.cpp:-802 > + } else if (part == MediaSliderThumbPart) { > style->setWidth(Length(mediaSliderThumbWidth, Fixed)); > style->setHeight(Length(mediaSliderThumbHeight, Fixed)); > - } Have you tested this part? > LayoutTests/platform/efl/TestExpectations:108 > +// Testcase assumes a thumb width of 12px, default there uses 29px. there?
Thiago Marcos P. Santos
Comment 5 2012-08-27 08:24:46 PDT
Created attachment 160724 [details] Patch Rebased.
Gyuyoung Kim
Comment 6 2012-08-27 17:28:21 PDT
CC'ing Leandro, Leandro and Lucas, could you guys take a look this patch ?
Ryuan Choi
Comment 7 2012-08-27 17:44:06 PDT
Comment on attachment 160724 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=160724&action=review > Source/WebKit/efl/ChangeLog:10 > + Also rename the image files from knob to thumb to reflect the WebKit > + terminology. Make sense, but how about separating this(with indentation) as other bug? Now, it is little bit difficult to review edc side.
Gyuyoung Kim
Comment 8 2012-08-27 18:01:55 PDT
Comment on attachment 160724 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=160724&action=review > Source/WebCore/platform/efl/RenderThemeEfl.cpp:344 > + if (object->style()->direction() == RTL || type == SliderVertical) I think you need to add comment for this condition. > Source/WebCore/platform/efl/RenderThemeEfl.cpp:345 > + msg->val[0] = 1; ditto ? > Source/WebKit/efl/DefaultTheme/widget/slider/slider.edc:42 > + set_state(PART:"img.thumb", "default", 0.0); Nit: "set_setate(" should shift a space to left side. Other is same. > LayoutTests/platform/chromium-win/fast/forms/input-appearance-height-expected.txt:3 > layer at (0,0) size 800x600 This patch should not influence on other ports.
Thiago Marcos P. Santos
Comment 9 2012-08-28 01:02:15 PDT
Comment on attachment 160724 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=160724&action=review Thanks for reviewing. >> Source/WebKit/efl/ChangeLog:10 >> + terminology. > > Make sense, but how about separating this(with indentation) as other bug? > > Now, it is little bit difficult to review edc side. Indeed. >> LayoutTests/platform/chromium-win/fast/forms/input-appearance-height-expected.txt:3 >> layer at (0,0) size 800x600 > > This patch should not influence on other ports. Oooooops! The default port of the rebaseline server :)
Thiago Marcos P. Santos
Comment 10 2012-08-28 03:02:54 PDT
Created attachment 160942 [details] Patch Addressed comments from the review.
KwangYong Choi
Comment 11 2012-08-28 03:39:26 PDT
*** Bug 93924 has been marked as a duplicate of this bug. ***
WebKit Review Bot
Comment 12 2012-08-28 04:11:30 PDT
Comment on attachment 160942 [details] Patch Clearing flags on attachment: 160942 Committed r126864: <http://trac.webkit.org/changeset/126864>
WebKit Review Bot
Comment 13 2012-08-28 04:11:34 PDT
All reviewed patches have been landed. Closing bug.
KwangYong Choi
Comment 14 2012-08-28 18:56:08 PDT
*** Bug 93449 has been marked as a duplicate of this bug. ***
Gyuyoung Kim
Comment 15 2012-08-31 21:30:26 PDT
Comment on attachment 160942 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=160942&action=review > Source/WebKit/efl/DefaultTheme/widget/slider/slider.edc:46 > + set_state(PART:"img.thumb", "pressed", 0.0); Though I pointed out wrong indentation in Comment #8, this patch was landed. Below is consistent with existing .edc indentation. if (get_int(isEnabled) == 1) { set_state(PART:"img.thumb", "default", 0.0); if (get_int(isFocused) == 1) { set_state(PART:"img.thumb", "pressed", 0.0); WebKit doesn't like to fix only coding style. So, I think it would good to fix this wrong indentation here again.
Thiago Marcos P. Santos
Comment 16 2012-09-01 02:50:50 PDT
Comment on attachment 160942 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=160942&action=review >> Source/WebKit/efl/DefaultTheme/widget/slider/slider.edc:46 >> + set_state(PART:"img.thumb", "pressed", 0.0); > > Though I pointed out wrong indentation in Comment #8, this patch was landed. Below is consistent with existing .edc indentation. > > if (get_int(isEnabled) == 1) { > set_state(PART:"img.thumb", "default", 0.0); > if (get_int(isFocused) == 1) { > set_state(PART:"img.thumb", "pressed", 0.0); > > WebKit doesn't like to fix only coding style. So, I think it would good to fix this wrong indentation here again. Sorry, I didn't ignore you comment. Shifting the line to the left, as Comment #8 said, would have made it 2 spaces indent. I asked people on the IRC what is the rule for .edc files and I got 3 spaces indent as the answer (which is what rasterman uses). On the other files we have a mixture of 3 and 4 spaces, but none uses 2.
Gyuyoung Kim
Comment 17 2012-09-01 21:10:13 PDT
I meant .edc file also needs to adhere WebKit coding style because we decided to use WebKit coding style except for public API which is used by EFL application. So, as you know, we have followed WebKit coding style instead of EFL coding style. Though there are existing .edc files which follow WebKit coding style, if you follow EFL coding style in this patch, this will make confusion from now. I would recommend to follow WebKit coding style in .edc file as well. How do you think about this ? >> Shifting the line to the left "to the left" is wrong. I wanted to shift to the right.
Thiago Marcos P. Santos
Comment 18 2012-09-03 05:52:15 PDT
(In reply to comment #17) > I meant .edc file also needs to adhere WebKit coding style because we decided to use WebKit coding style except for public API which is used by EFL application. So, as you know, we have followed WebKit coding style instead of EFL coding style. Though there are existing .edc files which follow WebKit coding style, if you follow EFL coding style in this patch, this will make confusion from now. I would recommend to follow WebKit coding style in .edc file as well. How do you think about this ? Theme files are part of the public API. It should be the starting point for developers embedding WebKit EFL that want to customize the browser look and feel. I really don't expect to see anyone shipping a product using the default theme.
Gyuyoung Kim
Comment 19 2012-09-03 08:54:09 PDT
(In reply to comment #18) > Theme files are part of the public API. It should be the starting point for developers embedding WebKit EFL that want to customize the browser look and feel. > > I really don't expect to see anyone shipping a product using the default theme. Though I also don't expect EFL application uses default theme, I think default theme files aren't a part of public API. edj files generated from edc files are just used by RenderThemeEfl class. Of course, the edc files can be referred by application. But, I think EFL application should follow efl coding style instead of edc file for WebKit default theme. Anyway, this is true that our .edc files are using a mixed indentation of 3 and 4 spaces. If you don't want to modify this indentation, it looks I can't enforce to modify it. But, I feel EFL coding style is different from general coding style. So, if possible, I prefer to use WebKit style for WebKit internal.
Note You need to log in before you can comment on or make changes to this bug.