WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
83664
[Refactoring] Move initial style setting for ProgressValueElement from attach method to createShadowSubtree method in HTMLProgressElement.
https://bugs.webkit.org/show_bug.cgi?id=83664
Summary
[Refactoring] Move initial style setting for ProgressValueElement from attach...
Takashi Sakamoto
Reported
2012-04-10 23:15:20 PDT
HTMLProgressElement initializes ProgressValueElement's width property in attach method (via didElementStateChange). However it is better to initialize the property just after creating shadow subtree, which contains ProgressValueElement and ProgressBarElement.
Attachments
Patch
(2.43 KB, patch)
2012-04-11 19:49 PDT
,
Takashi Sakamoto
no flags
Details
Formatted Diff
Diff
Patch
(5.53 KB, patch)
2012-10-29 02:09 PDT
,
Takashi Sakamoto
no flags
Details
Formatted Diff
Diff
Patch
(5.49 KB, patch)
2012-10-29 03:45 PDT
,
Takashi Sakamoto
no flags
Details
Formatted Diff
Diff
Patch
(5.37 KB, patch)
2012-10-29 04:14 PDT
,
Takashi Sakamoto
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Takashi Sakamoto
Comment 1
2012-04-11 19:49:07 PDT
Created
attachment 136812
[details]
Patch
Hajime Morrita
Comment 2
2012-04-16 19:12:53 PDT
Comment on
attachment 136812
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=136812&action=review
> Source/WebCore/html/HTMLProgressElement.cpp:91 > }
I'm sorry for the slow response. Could you call updateFromElement() at HTMLProgressElement::createRenderer() or some existing place? Then we can eliminate attach() at all.
Hajime Morrita
Comment 3
2012-04-16 19:13:54 PDT
Also, please CC possible reviews in your mind. Then they can (hopefully) notice that the patch is waiting for a review.
Takashi Sakamoto
Comment 4
2012-04-17 09:01:46 PDT
(In reply to
comment #2
)
> (From update of
attachment 136812
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=136812&action=review
> > > Source/WebCore/html/HTMLProgressElement.cpp:91 > > } > > I'm sorry for the slow response. > Could you call updateFromElement() at HTMLProgressElement::createRenderer() or some existing place?
I tried moving updateFromElement() to HTMLProgressElement::createRenderer(), i.e. --- --- --- { RenderObject* renderer = new (arena) RenderProgress(this); renderer->updateFromElement(); return renderer; } --- --- --- However, this change caused a problem: ---- [21190:21190:5720078002:ERROR:process_util_posix.cc(143)] Received signal 11 base::debug::StackTrace::StackTrace() [0x864a2a] base::(anonymous namespace)::StackDumpSignalHandler() [0x82568d] 0x7f0714b15af0 WTF::RefPtr<>::get() [0x4b098c] WebCore::DataRef<>::get() [0x4b097e] WebCore::DataRef<>::operator->() [0x4aedba] WebCore::RenderStyle::appearance() [0x6cc6ae] WebCore::RenderStyle::hasAppearance() [0x6cc68a] WebCore::RenderProgress::updateAnimationState() [0x19cdc4a] WebCore::RenderProgress::updateFromElement() [0x19cda6e] WebCore::HTMLProgressElement::createRenderer() [0x26682fb] WebCore::NodeRendererFactory::createRenderer() [0x775b0d] WebCore::NodeRendererFactory::createRendererIfNeeded() [0x775e6e] WebCore::Node::createRendererIfNeeded() [0x757687] WebCore::Element::attach() [0x73052b] WebCore::HTMLProgressElement::attach() [0x2668434] WebCore::ContainerNode::attachChildren() [0x6cbca5] WebCore::ContainerNode::attach() [0x6c9b0e] WebCore::Element::attach() [0x7305a4] WebCore::updateTreeAfterInsertion() [0x6cb623] WebCore::ContainerNode::appendChild() [0x6c95a5] ---- As m_style is initialized to be NULL (in HTMLProgressElement::createRenderer), style()->hasAppearance() causes signal 11. I'm not sure whether there exists some method which is called after finishing creating renderer or not. I would like to ask your idea.
Takashi Sakamoto
Comment 5
2012-10-29 02:09:38 PDT
Created
attachment 171179
[details]
Patch
Takashi Sakamoto
Comment 6
2012-10-29 02:18:01 PDT
***
Bug 100507
has been marked as a duplicate of this bug. ***
Andrey Khalyavin
Comment 7
2012-10-29 03:27:12 PDT
Sorry, that I submit an example with error - <progress> html element doesn't have min property. So we should remove it from test.
Takashi Sakamoto
Comment 8
2012-10-29 03:45:55 PDT
Created
attachment 171195
[details]
Patch
Takashi Sakamoto
Comment 9
2012-10-29 03:46:23 PDT
(In reply to
comment #7
)
> Sorry, that I submit an example with error - <progress> html element doesn't have min property. So we should remove it from test.
I see. I have just removed. Best regards, Takashi Sakamoto
Hajime Morrita
Comment 10
2012-10-29 04:08:49 PDT
Comment on
attachment 171195
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=171195&action=review
> Source/WebCore/ChangeLog:16 > + This patch fixes
bug 100507
. The new layout test is used to see whether
You don't need to mention this since the bug is marked as a dup of this bug.
Takashi Sakamoto
Comment 11
2012-10-29 04:14:01 PDT
Created
attachment 171198
[details]
Patch
Takashi Sakamoto
Comment 12
2012-10-29 04:14:32 PDT
Comment on
attachment 171195
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=171195&action=review
Thank you for reviewing.
>> Source/WebCore/ChangeLog:16 >> + This patch fixes
bug 100507
. The new layout test is used to see whether > > You don't need to mention this since the bug is marked as a dup of this bug.
I see. Done.
WebKit Review Bot
Comment 13
2012-10-31 21:35:13 PDT
Comment on
attachment 171198
[details]
Patch Clearing flags on attachment: 171198 Committed
r133124
: <
http://trac.webkit.org/changeset/133124
>
WebKit Review Bot
Comment 14
2012-10-31 21:35:17 PDT
All reviewed patches have been landed. Closing bug.
Kent Tamura
Comment 15
2012-11-02 01:06:07 PDT
Can we add assertions to detect such mistakes?
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