Changeset 107279 in webkit


Ignore:
Timestamp:
Feb 9, 2012 1:01:44 PM (12 years ago)
Author:
jchaffraix@webkit.org
Message:

Unreviewed, rolling out r107261.
http://trac.webkit.org/changeset/107261
https://bugs.webkit.org/show_bug.cgi?id=78274

It has regressed svg/W3C-SVG-1.1/styling-css-05-b.svg (using
lang() selectors) (Requested by jchaffraix on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-02-09

  • css/CSSStyleSelector.cpp:

(WebCore::CSSStyleSelector::canShareStyleWithControl):
(WebCore::CSSStyleSelector::canShareStyleWithElement):
(WebCore::isCommonAttributeSelectorAttribute):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107278 r107279  
     12012-02-09  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r107261.
     4        http://trac.webkit.org/changeset/107261
     5        https://bugs.webkit.org/show_bug.cgi?id=78274
     6
     7        It has regressed svg/W3C-SVG-1.1/styling-css-05-b.svg (using
     8        lang() selectors) (Requested by jchaffraix on #webkit).
     9
     10        * css/CSSStyleSelector.cpp:
     11        (WebCore::CSSStyleSelector::canShareStyleWithControl):
     12        (WebCore::CSSStyleSelector::canShareStyleWithElement):
     13        (WebCore::isCommonAttributeSelectorAttribute):
     14
    1152012-02-09  Joshua Bell  <jsbell@chromium.org>
    216
  • trunk/Source/WebCore/css/CSSStyleSelector.cpp

    r107261 r107279  
    11911191    }
    11921192
    1193     if (element->fastGetAttribute(typeAttr) != m_element->fastGetAttribute(typeAttr))
    1194         return false;
    1195 
    1196     if (element->fastGetAttribute(readonlyAttr) != m_element->fastGetAttribute(readonlyAttr))
    1197         return false;
    1198 
    1199 
    12001193    return true;
    12011194}
     
    12431236    if (!!element->attributeStyle() != !!m_styledElement->attributeStyle())
    12441237        return false;
     1238    StylePropertySet* additionalAttributeStyleA = element->additionalAttributeStyle();
     1239    StylePropertySet* additionalAttributeStyleB = m_styledElement->additionalAttributeStyle();
     1240    if (!additionalAttributeStyleA != !additionalAttributeStyleB)
     1241        return false;
    12451242    if (element->isLink() != m_element->isLink())
    12461243        return false;
     
    12531250    if (element->focused() != m_element->focused())
    12541251        return false;
     1252    if (element->shadowPseudoId() != m_element->shadowPseudoId())
     1253        return false;
    12551254    if (element == element->document()->cssTarget())
    12561255        return false;
    12571256    if (m_element == m_element->document()->cssTarget())
    12581257        return false;
    1259     if (style->transitions() || style->animations())
     1258    if (element->getAttribute(typeAttr) != m_element->getAttribute(typeAttr))
    12601259        return false;
    1261     if (element->isLink() && m_elementLinkState != style->insideLink())
     1260    if (element->fastGetAttribute(XMLNames::langAttr) != m_element->fastGetAttribute(XMLNames::langAttr))
    12621261        return false;
    1263     if (element->shadowPseudoId() != m_element->shadowPseudoId())
     1262    if (element->fastGetAttribute(langAttr) != m_element->fastGetAttribute(langAttr))
    12641263        return false;
     1264    if (element->fastGetAttribute(readonlyAttr) != m_element->fastGetAttribute(readonlyAttr))
     1265        return false;
     1266    if (element->fastGetAttribute(cellpaddingAttr) != m_element->fastGetAttribute(cellpaddingAttr))
     1267        return false;
     1268
    12651269    if (element->hasID() && m_features.idsInRules.contains(element->idForStyleResolution().impl()))
    12661270        return false;
    1267     if (m_element->isFormControlElement() && !canShareStyleWithControl(element))
     1271
     1272#if ENABLE(STYLE_SCOPED)
     1273    if (element->hasScopedHTMLStyleChild())
     1274        return false;
     1275#endif
     1276
     1277    bool isControl = element->isFormControlElement();
     1278
     1279    if (isControl != m_element->isFormControlElement())
     1280        return false;
     1281
     1282    if (isControl && !canShareStyleWithControl(element))
     1283        return false;
     1284
     1285    if (style->transitions() || style->animations())
    12681286        return false;
    12691287
     
    12861304        return false;
    12871305
    1288     StylePropertySet* additionalAttributeStyleA = element->additionalAttributeStyle();
    1289     StylePropertySet* additionalAttributeStyleB = m_styledElement->additionalAttributeStyle();
    1290     if (!additionalAttributeStyleA != !additionalAttributeStyleB)
    1291         return false;
    1292 
    12931306    if (element->attributeStyle() && !attributeStylesEqual(element->attributeStyle(), m_styledElement->attributeStyle()))
    12941307        return false;
     
    12971310        return false;
    12981311
    1299 #if ENABLE(STYLE_SCOPED)
    1300     if (element->hasScopedHTMLStyleChild())
     1312    if (element->isLink() && m_elementLinkState != style->insideLink())
    13011313        return false;
    1302 #endif
    13031314
    13041315    return true;
     
    21632174static inline bool isCommonAttributeSelectorAttribute(const QualifiedName& attribute)
    21642175{
    2165     // These are explicitly tested for equality in canShareStyleWithControl.
     2176    // These are explicitly tested for equality in canShareStyleWithElement.
    21662177    return attribute == typeAttr || attribute == readonlyAttr;
    21672178}
Note: See TracChangeset for help on using the changeset viewer.