WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
39941
Deploy adoptRef in more places, including all HTML and MathML elements
https://bugs.webkit.org/show_bug.cgi?id=39941
Summary
Deploy adoptRef in more places, including all HTML and MathML elements
Darin Adler
Reported
2010-05-30 22:16:44 PDT
Deploy adoptRef in more places, including all HTML and MathML elements
Attachments
Patch
(82.45 KB, patch)
2010-05-30 23:08 PDT
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(137.62 KB, patch)
2010-05-31 11:31 PDT
,
Darin Adler
levin
: review-
Details
Formatted Diff
Diff
Patch
(89.44 KB, patch)
2010-06-13 12:02 PDT
,
Darin Adler
levin
: review+
darin
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2010-05-30 23:08:12 PDT
Created
attachment 57436
[details]
Patch
WebKit Review Bot
Comment 2
2010-05-31 00:28:21 PDT
Attachment 57436
[details]
did not build on chromium: Build output:
http://webkit-commit-queue.appspot.com/results/2699075
Darin Adler
Comment 3
2010-05-31 11:31:02 PDT
Created
attachment 57486
[details]
Patch
WebKit Review Bot
Comment 4
2010-05-31 12:43:35 PDT
Attachment 57486
[details]
did not build on chromium: Build output:
http://webkit-commit-queue.appspot.com/results/2763019
David Levin
Comment 5
2010-05-31 13:58:15 PDT
Comment on
attachment 57486
[details]
Patch This patch has the fix for 39941 and the fix for 39692, which seems like a mistake.
Darin Adler
Comment 6
2010-05-31 18:22:03 PDT
Darn, I guess I have much to learn about using webkit-patch. Now for some hand editing :-(
Darin Adler
Comment 7
2010-06-13 12:02:46 PDT
Created
attachment 58599
[details]
Patch
David Levin
Comment 8
2010-06-13 14:41:04 PDT
Comment on
attachment 58599
[details]
Patch WebCore/editing/ModifySelectionListLevel.cpp:218 + return command->m_listElement; (I know it is the same code as before but) It would be nice to make this "return command->m_listElement.release();" WebCore/mathml/MathMLMathElement.cpp:47 + RenderObject* MathMLMathElement::createRenderer(RenderArena* arena, RenderStyle* style) I don't really understand why this change was done. Also, I don't know what this has to do with "Deploy adoptRef in more place". (I suspect it was just some additional clean up. I suspect that if it is worth doing, then most of the MathML*Element classes should have this done and that could be a change by itself.) In short, feel free to leave this in the change (but it would be nice to have the "Why?" answered).
Darin Adler
Comment 9
2010-06-16 10:26:50 PDT
(In reply to
comment #8
)
> WebCore/mathml/MathMLMathElement.cpp:47 > + RenderObject* MathMLMathElement::createRenderer(RenderArena* arena, RenderStyle* style) > I don't really understand why this change was done. > > Also, I don't know what this has to do with "Deploy adoptRef in more place". (I suspect it was just some additional clean up. I suspect that if it is worth doing, then most of the MathML*Element classes should have this done and that could be a change by itself.)
The other MathML elements don’t have their own unique element subclass, so they need to be handled in the MathMLInlineContainerElement. But this element does have a subclass, so there’s no need to have the base class createRenderer support it. This is not critically important to this patch, and you’re right that I could have left it out or could land it separately.
David Levin
Comment 10
2010-06-16 13:19:55 PDT
(In reply to
comment #9
)
> (In reply to
comment #8
) > > WebCore/mathml/MathMLMathElement.cpp:47 > > + RenderObject* MathMLMathElement::createRenderer(RenderArena* arena, RenderStyle* style) > > I don't really understand why this change was done. > > > > Also, I don't know what this has to do with "Deploy adoptRef in more place". (I suspect it was just some additional clean up. I suspect that if it is worth doing, then most of the MathML*Element classes should have this done and that could be a change by itself.) > > The other MathML elements don’t have their own unique element subclass, so they need to be handled in the MathMLInlineContainerElement. But this element does have a subclass, so there’s no need to have the base class createRenderer support it. > > This is not critically important to this patch, and you’re right that I could have left it out or could land it separately.
Thanks for the info! (As I mentioned before) Feel free to leave it in the patch.
Darin Adler
Comment 11
2010-06-16 16:07:50 PDT
Committed
r61293
: <
http://trac.webkit.org/changeset/61293
>
Eric Seidel (no email)
Comment 12
2010-06-16 16:34:19 PDT
This must have broken MathML builds: virtual createRenderer(RenderArena*, RenderStyle*); in trunk/WebCore/mathml/MathMLMathElement.h and in trunk/WebCore/mathml/MathMLMathElement.h Otherwise LGTM too.
Darin Adler
Comment 13
2010-06-16 16:38:57 PDT
(In reply to
comment #12
)
> in trunk/WebCore/mathml/MathMLMathElement.h > and in trunk/WebCore/mathml/MathMLMathElement.h
Those are both the same file. I fixed it, but couldn't find a second case.
Eric Seidel (no email)
Comment 14
2010-06-16 17:46:48 PDT
I must have read the diff wrong. Thanks.
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