Commit 2312f23d authored by antti@apple.com's avatar antti@apple.com
Browse files

svg/custom/use-css-no-effect-on-shadow-tree.svg produces empty image on Chromium Linux after r58556

https://bugs.webkit.org/show_bug.cgi?id=54460
        
Reviewed by Andreas Kling.

Don't use fast path for SVG. There are some additional rules for shadow trees that are not
implemented on fast path.
        
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::checkSelector):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78568 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 150f5e0c
2011-02-15 Antti Koivisto <antti@apple.com>
Reviewed by Andreas Kling.
svg/custom/use-css-no-effect-on-shadow-tree.svg produces empty image on Chromium Linux after r58556
https://bugs.webkit.org/show_bug.cgi?id=54460
Don't use fast path for SVG. There are some additional rules for shadow trees that are not
implemented on fast path.
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::checkSelector):
2011-02-15 Andras Becsi <abecsi@webkit.org>
 
Reviewed by Csaba Osztrogonác.
......@@ -2038,7 +2038,8 @@ inline bool CSSStyleSelector::checkSelector(const RuleData& ruleData)
{
m_dynamicPseudo = NOPSEUDO;
if (ruleData.hasFastCheckableSelector()) {
// Let the slow path handle SVG as it has some additional rules regarding shadow trees.
if (ruleData.hasFastCheckableSelector() && !m_element->isSVGElement()) {
// We know this selector does not include any pseudo selectors.
if (m_checker.m_pseudoStyle != NOPSEUDO)
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment