Bug 12281 - CSS style sharing system should work with inline style declarations
Summary: CSS style sharing system should work with inline style declarations
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-15 06:52 PST by Eric Seidel (no email)
Modified: 2011-11-24 00:59 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2007-01-15 06:52:00 PST
CSS style sharing system should work with inline style declarations

Currently in 
bool CSSStyleSelector::canShareStyleWithElement(Node* n)

there is an explicit check for !s->inlineStyleDecl()

This makes style sharing much less useful for SVG, since sooo much of SVG uses style="" for setting styles on elements.  Ugly, I know, but SVGs are generally created by editors, and editors often just spit out style tags.
Comment 1 Dave Hyatt 2007-01-15 14:38:02 PST
This is very hard to do, since the CSSStyleDeclaration exposed by inline style is accessible from JS.