WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
102037
[EFL] Refactor theme to choose whether to support foreground color of selection
https://bugs.webkit.org/show_bug.cgi?id=102037
Summary
[EFL] Refactor theme to choose whether to support foreground color of selection
Ryuan Choi
Reported
2012-11-12 19:42:39 PST
WebKit/Efl provides a way to change the foreground color of selection. But, we did not support keeping the text color although text was selected. Patch will be added.
Attachments
Patch
(8.14 KB, patch)
2012-11-12 19:56 PST
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Patch
(8.27 KB, patch)
2012-11-12 21:28 PST
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Patch
(8.16 KB, patch)
2012-11-13 00:24 PST
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Patch
(8.40 KB, patch)
2012-11-13 02:38 PST
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Patch
(96.26 KB, patch)
2012-11-19 04:34 PST
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Patch
(96.48 KB, patch)
2012-11-20 09:08 PST
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Patch
(96.82 KB, patch)
2012-11-28 04:33 PST
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Patch
(8.91 KB, patch)
2012-11-28 05:40 PST
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
Ryuan Choi
Comment 1
2012-11-12 19:56:44 PST
Created
attachment 173800
[details]
Patch
Jinwoo Song
Comment 2
2012-11-12 20:08:55 PST
Comment on
attachment 173800
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=173800&action=review
> Source/WebCore/ChangeLog:10 > + which isselected.
s/isselected/is selected/
Ryuan Choi
Comment 3
2012-11-12 21:28:29 PST
Created
attachment 173810
[details]
Patch
Gyuyoung Kim
Comment 4
2012-11-12 21:46:26 PST
Comment on
attachment 173810
[details]
Patch It looks this patch may influence on pixel-test. Did you check this ?
Ryuan Choi
Comment 5
2012-11-12 23:46:19 PST
(In reply to
comment #4
)
> (From update of
attachment 173810
[details]
) > It looks this patch may influence on pixel-test. Did you check this ?
I will check, but it should not change anything. Default theme provides same foreground color.
Laszlo Gombos
Comment 6
2012-11-13 00:16:33 PST
Comment on
attachment 173810
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=173810&action=review
Any idea how to test this code new code path ?
> Source/WebCore/ChangeLog:8 > + Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!).
You should remove this line.
Gyuyoung Kim
Comment 7
2012-11-13 00:23:32 PST
Comment on
attachment 173810
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=173810&action=review
> Source/WebCore/ChangeLog:8 > + Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!).
Remove this comment.
> Source/WebCore/platform/efl/RenderThemeEfl.h:109 > + virtual bool supportsSelectionForegroundColors() const;
I prefer to put same functions in a place. So, it looks this can be moved to 'bool supportsControlTints()' below. virtual bool supportsControlTints() const { return true; }
Ryuan Choi
Comment 8
2012-11-13 00:24:37 PST
Created
attachment 173839
[details]
Patch
Ryuan Choi
Comment 9
2012-11-13 00:29:00 PST
(In reply to
comment #6
)
> (From update of
attachment 173810
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=173810&action=review
> > Any idea how to test this code new code path ? > > > Source/WebCore/ChangeLog:8 > > + Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!). > > You should remove this line.
Oops it's mistake. removed.(In reply to
comment #7
)
> (From update of
attachment 173810
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=173810&action=review
> > > Source/WebCore/ChangeLog:8 > > + Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!). > > Remove this comment.
Done, sorry.
> > > Source/WebCore/platform/efl/RenderThemeEfl.h:109 > > + virtual bool supportsSelectionForegroundColors() const; > > I prefer to put same functions in a place. So, it looks this can be moved to 'bool supportsControlTints()' below. > > virtual bool supportsControlTints() const { return true; }
I tried to keep the similar position with base class. But I can move this if you want.
Gyuyoung Kim
Comment 10
2012-11-13 02:02:33 PST
(In reply to
comment #9
)
> I tried to keep the similar position with base class. > But I can move this if you want.
Yes, I prefer it.
Ryuan Choi
Comment 11
2012-11-13 02:38:42 PST
Created
attachment 173854
[details]
Patch
Ryuan Choi
Comment 12
2012-11-14 16:37:08 PST
Comment on
attachment 173854
[details]
Patch Thank you kangil.
WebKit Review Bot
Comment 13
2012-11-14 16:50:33 PST
Comment on
attachment 173854
[details]
Patch Clearing flags on attachment: 173854 Committed
r134694
: <
http://trac.webkit.org/changeset/134694
>
WebKit Review Bot
Comment 14
2012-11-14 16:50:37 PST
All reviewed patches have been landed. Closing bug.
Yael
Comment 15
2012-11-15 19:16:37 PST
The API test ewk_test2_view is asserting on _ASSERT_ON_RELEASE_RETURN_VAL(ok, false, "Could not get color class '%s'\n", colorClass); Do we need to change the test after this patch?
WebKit Review Bot
Comment 16
2012-11-16 04:31:02 PST
Re-opened since this is blocked by
bug 102481
Ryuan Choi
Comment 17
2012-11-19 04:12:37 PST
(In reply to
comment #15
)
> The API test ewk_test2_view is asserting on _ASSERT_ON_RELEASE_RETURN_VAL(ok, false, "Could not get color class '%s'\n", colorClass); > > Do we need to change the test after this patch?
I missed to change big_button.edj not to have unnecessary warning. But I think that it would be just additional warning, not fail case of API test. Anyway, I will make patch including bug_button.edj
Ryuan Choi
Comment 18
2012-11-19 04:34:41 PST
Created
attachment 174953
[details]
Patch
Raphael Kubo da Costa (:rakuco)
Comment 19
2012-11-19 07:30:46 PST
Laszlo's question in
comment #6
has not been answered yet -- any idea how to test this? It's still not clear to me from the ChangeLog what this is actually fixing.
Ryuan Choi
Comment 20
2012-11-19 18:29:29 PST
(In reply to
comment #19
)
> Laszlo's question in
comment #6
has not been answered yet -- any idea how to test this? It's still not clear to me from the ChangeLog what this is actually fixing.
Sorry, I didn't catch it. For test, I don't have idea now. IMHO, to tests this, we make pixel tests for API tests (or any framework to test theme file). It's because this changes just affect painting of selected paragraph. WebCore choose foreground color of selection if it was given. If not, it will paint default color of selected text. But, we can not have a way not to give foreground color to WebCore. So, this patch adds a new feature to disable foreground color to paint default color of selected text. I will consider to update change log. Thanks.
Ryuan Choi
Comment 21
2012-11-20 09:08:06 PST
Created
attachment 175229
[details]
Patch
Ryuan Choi
Comment 22
2012-11-28 04:33:17 PST
Created
attachment 176455
[details]
Patch
Chris Dumez
Comment 23
2012-11-28 05:02:35 PST
Comment on
attachment 176455
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=176455&action=review
> Source/WebCore/ChangeLog:12 > + However, EFL port does not have a way to disable supports of foreground
"support"
> Source/WebCore/ChangeLog:14 > + active and inactive to foreground and background in order to disable supports
ditto
> Source/WebKit2/ChangeLog:8 > + * UIProcess/API/efl/tests/resources/big_button_theme.edj: Recreated.
We really should not have a binary in our tree. Why don't you upload the edc instead and compile it with the others? At the moment, you are the only one who can update this file.
Ryuan Choi
Comment 24
2012-11-28 05:40:22 PST
Created
attachment 176464
[details]
Patch
Ryuan Choi
Comment 25
2012-11-28 05:45:12 PST
(In reply to
comment #23
)
> (From update of
attachment 176455
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=176455&action=review
> > > Source/WebCore/ChangeLog:12 > > + However, EFL port does not have a way to disable supports of foreground > > "support" > > > Source/WebCore/ChangeLog:14 > > + active and inactive to foreground and background in order to disable supports > > ditto >
Thank you, I fixed.
> > Source/WebKit2/ChangeLog:8 > > + * UIProcess/API/efl/tests/resources/big_button_theme.edj: Recreated. > > We really should not have a binary in our tree. Why don't you upload the edc instead and compile it with the others? > At the moment, you are the only one who can update this file.
Good point. I agree with you. I created
Bug 103511
for it and removed changes from this bug because it does not make regression and print additional warning anymore.
WebKit Review Bot
Comment 26
2012-11-28 06:24:05 PST
Comment on
attachment 176464
[details]
Patch Clearing flags on attachment: 176464 Committed
r136005
: <
http://trac.webkit.org/changeset/136005
>
WebKit Review Bot
Comment 27
2012-11-28 06:24:13 PST
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.
Top of Page
Format For Printing
XML
Clone This Bug