WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
78547
Add a themeChromiumAndroid.css file for android-specific default styles
https://bugs.webkit.org/show_bug.cgi?id=78547
Summary
Add a themeChromiumAndroid.css file for android-specific default styles
Eric Seidel (no email)
Reported
2012-02-13 16:03:47 PST
Add a themeChromiumAndroid.css file for android-specific default styles
Attachments
Patch
(6.39 KB, patch)
2012-02-13 16:08 PST
,
Eric Seidel (no email)
no flags
Details
Formatted Diff
Diff
Patch for landing
(6.57 KB, patch)
2012-02-16 10:47 PST
,
Eric Seidel (no email)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Eric Seidel (no email)
Comment 1
2012-02-13 16:08:40 PST
Created
attachment 126856
[details]
Patch
Eric Seidel (no email)
Comment 2
2012-02-13 16:09:58 PST
Tkent might be curious to see the styling of the datetime inputs, but I think this can just be a rubber-stamp review, it's very simple.
Satish Sampath
Comment 3
2012-02-13 16:15:12 PST
Comment on
attachment 126856
[details]
Patch
> static const RGBA32 defaultTapHighlightColor = 0x6633b5e5;
Should this be under "#if ENABLE(TOUCH_EVENTS)" as well?
Adam Barth
Comment 4
2012-02-13 16:15:23 PST
Comment on
attachment 126856
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=126856&action=review
Ok.
> Source/WebCore/rendering/RenderThemeChromiumAndroid.h:50 > private:
Missing a blank line above this line.
Peter Beverloo
Comment 5
2012-02-13 16:24:06 PST
Comment on
attachment 126856
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=126856&action=review
> Source/WebCore/WebCore.gyp/WebCore.gyp:825 > '../css/themeChromiumSkia.css', # Chromium only.
nit: it seems like someone tried to align them, may be good as a drive-by to remove the extra space here.
> Source/WebCore/css/themeChromiumAndroid.css:35 > +select[size][multiple] {
Is this last selector necessary? It seems to me that any elements having both @size and @multiple also match one of the earlier two selectors.
Kent Tamura
Comment 6
2012-02-13 16:46:20 PST
Comment on
attachment 126856
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=126856&action=review
> Source/WebCore/css/themeChromiumAndroid.css:2 > + * Copyright (C) 2009 Google Inc. All rights reserved.
2012?
> Source/WebCore/css/themeChromiumAndroid.css:45 > +input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="time"], input[type="month"] { > + -webkit-appearance: menulist-button; > +}
I understand how they are implemented in Android and it's ok to commit this as is for now. These types inherit a text field type in WebCore/html/*InputType. We should make a better way to switch form control UI.
> Source/WebCore/rendering/RenderThemeChromiumAndroid.h:45 > + virtual String extraDefaultStyleSheet(); > > virtual Color systemColor(int cssValidId) const; > > virtual void adjustInnerSpinButtonStyle(CSSStyleSelector*, RenderStyle*, Element*) const; > > + virtual bool delegatesMenuListRendering() const { return true; } > + > +#if ENABLE(TOUCH_EVENTS) > + virtual Color platformTapHighlightColor() const
Should append OVERRIDE.
Eric Seidel (no email)
Comment 7
2012-02-13 16:48:02 PST
Wow! Thanks for all the reviews! Will upload a new patch.
Eric Seidel (no email)
Comment 8
2012-02-16 10:45:02 PST
(In reply to
comment #5
)
> (From update of
attachment 126856
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=126856&action=review
> > > Source/WebCore/WebCore.gyp/WebCore.gyp:825 > > '../css/themeChromiumSkia.css', # Chromium only. > > nit: it seems like someone tried to align them, may be good as a drive-by to remove the extra space here.
I don't really see any alignment pattern. I can remove the extra space from the chromiumskia one, but I think I'll just leave it: '../css/themeChromium.css', # Chromium only. '../css/themeChromiumAndroid.css', # Chromium only. '../css/themeChromiumLinux.css', # Chromium only. '../css/themeChromiumSkia.css', # Chromium only.
> > Source/WebCore/css/themeChromiumAndroid.css:35 > > +select[size][multiple] { > > Is this last selector necessary? It seems to me that any elements having both @size and @multiple also match one of the earlier two selectors.
No clue.
Eric Seidel (no email)
Comment 9
2012-02-16 10:47:54 PST
Created
attachment 127408
[details]
Patch for landing
WebKit Review Bot
Comment 10
2012-02-16 16:47:11 PST
Comment on
attachment 127408
[details]
Patch for landing Clearing flags on attachment: 127408 Committed
r107998
: <
http://trac.webkit.org/changeset/107998
>
WebKit Review Bot
Comment 11
2012-02-16 16:47:17 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