RESOLVED FIXED Bug 41319
Implement HTMLTreeBuilder::reconstructTheActiveFormattingElements
https://bugs.webkit.org/show_bug.cgi?id=41319
Summary Implement HTMLTreeBuilder::reconstructTheActiveFormattingElements
Eric Seidel (no email)
Reported 2010-06-28 17:05:53 PDT
Implement HTMLTreeBuilder::reconstructTheActiveFormattingElements
Attachments
Patch (4.98 KB, patch)
2010-06-28 17:08 PDT, Eric Seidel (no email)
no flags
Patch (7.90 KB, patch)
2010-06-28 18:11 PDT, Eric Seidel (no email)
no flags
Patch (4.04 KB, patch)
2010-06-28 21:26 PDT, Eric Seidel (no email)
abarth: review+
Eric Seidel (no email)
Comment 1 2010-06-28 17:08:35 PDT
Adam Barth
Comment 2 2010-06-28 17:20:18 PDT
Comment on attachment 59960 [details] Patch I'd rather this patch had tests. If you wait 15 minutes, we'll have the harness landed... WebCore/html/HTMLTreeBuilder.cpp:870 + // Spec: Possible active formatting elements include: I'd remove the word "spec" here. WebCore/html/HTMLTreeBuilder.cpp:926 + for (; previousEntryIndex > 0; previousEntryIndex--) { Can we make this a while or a function that returns the answer? Also, predecrement! WebCore/html/HTMLTreeBuilder.cpp:932 + for (unsigned unopenEntryIndex = previousEntryIndex + 1; unopenEntryIndex < m_activeFormattingElements.size(); ++unopenEntryIndex) { Can we assert that previousEntryIndex is not the last guy in the list? WebCore/html/HTMLTreeBuilder.h:155 + bool contains(Element* element) We're going to need a cache here eventually. WebCore/html/HTMLTreeBuilder.h:257 + }; Blank line below this line.
Eric Seidel (no email)
Comment 3 2010-06-28 18:11:11 PDT
Adam Barth
Comment 4 2010-06-28 18:22:23 PDT
Comment on attachment 59967 [details] Patch WebCore/html/HTMLTreeBuilder.h:217 + PassRefPtr<Element> createElement(AtomicHTMLToken&); I would have put a blank line here to paragraph these.
WebKit Commit Bot
Comment 5 2010-06-28 19:52:44 PDT
Comment on attachment 59967 [details] Patch Clearing flags on attachment: 59967 Committed r62077: <http://trac.webkit.org/changeset/62077>
WebKit Commit Bot
Comment 6 2010-06-28 19:52:48 PDT
All reviewed patches have been landed. Closing bug.
Daniel Bates
Comment 7 2010-06-28 20:23:11 PDT
Daniel Bates
Comment 8 2010-06-28 20:34:48 PDT
Landed attempt to fix the build in change-set 62080 <https://trac.webkit.org/changeset/62080>.
WebKit Review Bot
Comment 9 2010-06-28 21:13:15 PDT
http://trac.webkit.org/changeset/62080 might have broken Chromium Mac Release
Eric Seidel (no email)
Comment 10 2010-06-28 21:26:34 PDT
Adam Barth
Comment 11 2010-06-28 21:30:15 PDT
Comment on attachment 59981 [details] Patch I don't love it. I'd rather have iterators, but ok.
Eric Seidel (no email)
Comment 12 2010-06-28 21:36:19 PDT
Note You need to log in before you can comment on or make changes to this bug.