WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
52317
Flip input[type=range] to use the new shadow DOM model.
https://bugs.webkit.org/show_bug.cgi?id=52317
Summary
Flip input[type=range] to use the new shadow DOM model.
Dimitri Glazkov (Google)
Reported
2011-01-12 12:09:10 PST
Flip input[type=range] to use the new shadow DOM model.
Attachments
Patch
(22.51 KB, patch)
2011-01-12 12:17 PST
,
Dimitri Glazkov (Google)
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dimitri Glazkov (Google)
Comment 1
2011-01-12 12:17:57 PST
Created
attachment 78720
[details]
Patch
Darin Adler
Comment 2
2011-01-12 17:44:47 PST
Comment on
attachment 78720
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=78720&action=review
Looks good.
> Source/WebCore/html/InputType.h:181 > virtual bool canBeSuccessfulSubmitButton(); > > + // Shadow tree handling > + virtual void createShadowSubtree(); > + void destroyShadowSubtree(); > + > // Miscellaneous functions > > virtual bool rendererIsNeeded();
Formatting here is inconsistent. Number of blank lines (I prefer to never use more than one). Whether there is a blank line after a comment before the paragraph of functions it describes.
> Source/WebCore/html/shadow/SliderThumbElement.cpp:44 > +// FIXME: Find a way to cascade appearance and get rid of this class.
I think this would be clearer if you were a bit more explicit and specific.
> Source/WebCore/rendering/MediaControlElements.cpp:474 > + // FIXME: Remove this once all media controls are transitioned to use the regular > + // style calculation.
Seems a bit cryptic, but maybe someone more expert than I would understand.
> Source/WebCore/rendering/RenderSlider.h:49 > + // FIXME: Eventually, accessing sliderThumbElement should not be necessary in this class.
It would be good to say why it would not be necessary. What is it currently used for? Why would that no longer be needed?
Dimitri Glazkov (Google)
Comment 3
2011-01-13 09:53:48 PST
Thanks for review! (In reply to
comment #2
)
> (From update of
attachment 78720
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=78720&action=review
> > Looks good. > > > Source/WebCore/html/InputType.h:181 > > virtual bool canBeSuccessfulSubmitButton(); > > > > + // Shadow tree handling > > + virtual void createShadowSubtree(); > > + void destroyShadowSubtree(); > > + > > // Miscellaneous functions > > > > virtual bool rendererIsNeeded(); > > Formatting here is inconsistent. Number of blank lines (I prefer to never use more than one). Whether there is a blank line after a comment before the paragraph of functions it describes.
Will fix.
> > > Source/WebCore/html/shadow/SliderThumbElement.cpp:44 > > +// FIXME: Find a way to cascade appearance and get rid of this class. > > I think this would be clearer if you were a bit more explicit and specific.
Yeah, you're right. I'll add better comment around.
> > > Source/WebCore/rendering/MediaControlElements.cpp:474 > > + // FIXME: Remove this once all media controls are transitioned to use the regular > > + // style calculation. > > Seems a bit cryptic, but maybe someone more expert than I would understand.
Will expand comment, too.
> > > Source/WebCore/rendering/RenderSlider.h:49 > > + // FIXME: Eventually, accessing sliderThumbElement should not be necessary in this class. > > It would be good to say why it would not be necessary. What is it currently used for? Why would that no longer be needed?
And here too.
Dimitri Glazkov (Google)
Comment 4
2011-01-13 10:35:14 PST
Committed
r75725
: <
http://trac.webkit.org/changeset/75725
>
WebKit Review Bot
Comment 5
2011-01-13 11:29:02 PST
http://trac.webkit.org/changeset/75725
might have broken SnowLeopard Intel Release (Tests) The following tests are not passing: fast/css/pseudo-in-range-invalid-value.html fast/css/pseudo-in-range.html fast/forms/form-collection-elements.html fast/forms/range-keyoperation.html
WebKit Review Bot
Comment 6
2011-01-13 13:11:51 PST
http://trac.webkit.org/changeset/75728
might have broken Leopard Intel Release (Tests)
Dimitri Glazkov (Google)
Comment 7
2011-01-13 13:19:53 PST
Fascinating. I've forgotten the case of transferring shadow DOM between documents. Fixing.
Dimitri Glazkov (Google)
Comment 8
2011-01-13 16:14:57 PST
Committed
r75749
: <
http://trac.webkit.org/changeset/75749
>
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