WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
80856
Split the extra logic out of RenderObjectChildList::updateBeforeAfterContent
https://bugs.webkit.org/show_bug.cgi?id=80856
Summary
Split the extra logic out of RenderObjectChildList::updateBeforeAfterContent
Igor Trindade Oliveira
Reported
2012-03-12 10:40:58 PDT
Currently, updateBeforeAfterContent has a complex logic, it creates and updates the before and after elements. Splitting the extra logic out of RenderObjectChildList::updateBeforeAfterContent, makes it easier to understand.
Attachments
Patch.
(14.23 KB, patch)
2012-03-12 13:34 PDT
,
Igor Trindade Oliveira
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
Patch
(11.91 KB, patch)
2012-03-12 16:58 PDT
,
Igor Trindade Oliveira
jchaffraix
: review+
jchaffraix
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Igor Trindade Oliveira
Comment 1
2012-03-12 10:45:39 PDT
Patch coming.
Igor Trindade Oliveira
Comment 2
2012-03-12 13:34:57 PDT
Created
attachment 131396
[details]
Patch. Proposed patch.
WebKit Review Bot
Comment 3
2012-03-12 15:08:01 PDT
Comment on
attachment 131396
[details]
Patch.
Attachment 131396
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/11943161
New failing tests: svg/text/text-block-child-crash.xhtml
Julien Chaffraix
Comment 4
2012-03-12 15:27:31 PDT
Comment on
attachment 131396
[details]
Patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=131396&action=review
The rest of the change looks fine but I would like a green EWS!
> Source/WebCore/rendering/RenderObjectChildList.cpp:540 > - return; > - } > + generatedContentContainer = createBeforeAfterGeneratedContentContainer(owner, renderer, styledObject, pseudoElementStyle);
I don't think this change is right. We used to bail out if |generatedContentContainer| was not allowed by |owner| and now we don't - because it's missing a NULL-check. I guess that's why the EWS is unhappy. Arguably this doesn't add much so I would advise just dropping this part of the change unless you need that for your refactoring.
Igor Trindade Oliveira
Comment 5
2012-03-12 16:58:01 PDT
Created
attachment 131455
[details]
Patch Proposed patch v2.
Julien Chaffraix
Comment 6
2012-03-13 08:56:21 PDT
Comment on
attachment 131455
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=131455&action=review
> Source/WebCore/ChangeLog:3 > + Split the extra logic out of RenderObjectChildList::updateBeforeAfterContent
Btw, I don't know what the "extra logic" is. I guess it should be either * Split some logic out of RenderObjectChildList::updateBeforeAfterContent * Extra part of the generated content handling logic out of RenderObjectChildList::updateBeforeAfterContent
> Source/WebCore/ChangeLog:12 > + (WebCore):
Useless line (not your fault as prepare-ChangeLog has been sick for some time).
> Source/WebCore/ChangeLog:14 > + (WebCore::createBeforeAfterGeneratedContentContainer):
Stale entry.
> Source/WebCore/rendering/RenderObjectChildList.cpp:350 > + if (child && child->style()->styleType() == type) {
Nit: This could use an early return.
Igor Trindade Oliveira
Comment 7
2012-03-13 18:45:48 PDT
Committed
r110656
:
http://trac.webkit.org/changeset/110656
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