[Webkit-unassigned] [Bug 122097] ASSERTION FAILED: !style->propertyIsImportant(propertyID) in WebCore::setTextDecorationProperty

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 18 13:46:39 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=122097





--- Comment #9 from Ryosuke Niwa <rniwa at webkit.org>  2013-10-18 13:45:24 PST ---
(From update of attachment 214482)
View in context: https://bugs.webkit.org/attachment.cgi?id=214482&action=review

> Source/WebCore/editing/ApplyStyleCommand.cpp:1016
> -    if ((node->renderer()->isRenderBlockFlow() || node->childNodeCount()) && node->isHTMLElement()) {
> +    if ((node->renderer()->isRenderBlockFlow() || node->childNodeCount() || node->renderer()->isReplaced()) && node->isHTMLElement()) {

All replaced elements?  So we do this for img, input, etc...?  That doesn't sound right.
We also need tests for that.

> Source/WebCore/editing/EditingStyle.cpp:-1411
>          // text-decoration: none is redundant since it does not remove any text decorations.
> -        ASSERT(!style->propertyIsImportant(propertyID));

I think the point of this code is that if text-decoration was specified with !important then we don't want to be overriding it with a new text decoration.
We should add a bunch of test cases for that.

> LayoutTests/editing/execCommand/remove-format-textdecoration-in-iframe.html:7
> +    <iframe onload="{ document.designMode='on';
> +                      document.execCommand('selectall');
> +                      document.execCommand('RemoveFormat'); }"></iframe>

Can we move this function out of the attribute and put it in the script element below?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list