[Webkit-unassigned] [Bug 55339] New: applyInlineStyleToPushDown may apply style with CSS when pushing down styles even if styleWithCSS is false

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 27 17:54:52 PST 2011


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

           Summary: applyInlineStyleToPushDown may apply style with CSS
                    when pushing down styles even if styleWithCSS is false
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: P3
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rniwa at webkit.org
                CC: eric at webkit.org, darin at apple.com, tony at chromium.org,
                    ojan at chromium.org, enrica at apple.com


Currently, ApplyStyleCommand::applyInlineStyleToPushDown sets style attribute to push down styles if the node has block flow style or has children.  The following fix me corresponds to this bug:

// FIXME: applyInlineStyleToRange should be used here instead.
if ((node->renderer()->isBlockFlow() || node->childNodeCount()) && node->isHTMLElement()) {
    setNodeAttribute(toHTMLElement(node), styleAttr, newInlineStyle->style()->cssText());
    return;
}

-- 
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