Bug 12281
Summary: | CSS style sharing system should work with inline style declarations | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | hyatt, kling |
Priority: | P2 | ||
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 |
Eric Seidel (no email)
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Dave Hyatt
This is very hard to do, since the CSSStyleDeclaration exposed by inline style is accessible from JS.