RESOLVED FIXED22549
Add WML <do> element support.
https://bugs.webkit.org/show_bug.cgi?id=22549
Summary Add WML <do> element support.
Nikolas Zimmermann
Reported 2008-11-28 18:07:59 PST
Add <do> element support, a general task element container element. Until now only <anchor> supported <go>/<prev>/<refresh> task child elements, <do> provides a way to register a task to a <template>/<card> element.
Attachments
Initial patch (17.58 KB, patch)
2008-11-28 18:10 PST, Nikolas Zimmermann
no flags
Updated patch (17.62 KB, patch)
2008-11-28 18:34 PST, Nikolas Zimmermann
zecke: review+
Layout test results (14.59 KB, patch)
2008-11-28 18:34 PST, Nikolas Zimmermann
zecke: review+
Nikolas Zimmermann
Comment 1 2008-11-28 18:10:43 PST
Created attachment 25578 [details] Initial patch
Nikolas Zimmermann
Comment 2 2008-11-28 18:34:11 PST
Created attachment 25579 [details] Updated patch Incorporate comments from Holger.
Nikolas Zimmermann
Comment 3 2008-11-28 18:34:36 PST
Created attachment 25580 [details] Layout test results
Holger Freyther
Comment 4 2008-11-28 18:41:36 PST
Comment on attachment 25580 [details] Layout test results Okay.
Holger Freyther
Comment 5 2008-11-28 18:46:10 PST
Comment on attachment 25579 [details] Updated patch > +2008-11-28 Nikolas Zimmermann <nikolas.zimmermann@torchmobile.com> > + > + Reviewed by Holger Freyther ^^ haha ;) > +void WMLDoElement::defaultEventHandler(Event* event) I assume that you look at the right events?! But if you don't I'm pretty sure you will find that out sooner than later. > + > + Node* parent = parentNode(); > + ASSERT(parent); > + > + if (!parent || !parent->isWMLElement()) > + return; Before landing decide if the parentNode might be zero or not and then remove the assert or the !parent from the if? > + bool m_isOption; maybe call it m_isOptional? but that is optional... from a grep in the source tree it looks like you uncommented all doTag users...
Nikolas Zimmermann
Comment 6 2008-11-28 18:50:29 PST
> > + > > + Reviewed by Holger Freyther > > ^^ haha ;) Psst :-) > > > +void WMLDoElement::defaultEventHandler(Event* event) > > I assume that you look at the right events?! But if you don't I'm pretty sure > you will find that out sooner than later. Yes, we'll find out soon - it worked this way in the internal codebase, so maybe it's correct as is already :-) > > > + > > + Node* parent = parentNode(); > > + ASSERT(parent); > > + > > + if (!parent || !parent->isWMLElement()) > > + return; > > Before landing decide if the parentNode might be zero or not and then remove > the assert or the !parent from the if? Ok, as we discussed on IRC, there are 6 other places with exactly the same snippet. Will clean that up in another patch for all of them. > > + bool m_isOption; > > maybe call it m_isOptional? but that is optional... Done. > from a grep in the source tree it looks like you uncommented all doTag users... Yes. Thanks for the review, landing soon.
Nikolas Zimmermann
Comment 7 2008-11-28 18:52:25 PST
Landed in r38837.
Note You need to log in before you can comment on or make changes to this bug.