Changeset 100251 in webkit


Ignore:
Timestamp:
Nov 15, 2011 1:32:16 AM (13 years ago)
Author:
apavlov@chromium.org
Message:

Web Inspector: [Crash] Crash when inspecting namespaced SVG styled via element names
https://bugs.webkit.org/show_bug.cgi?id=72261

Reviewed by Pavel Feldman.

Source/WebCore:

Test: inspector/styles/svg-style.xhtml

  • inspector/InspectorStyleSheet.cpp:

(WebCore::InspectorStyleSheet::inlineStyleSheetText):

LayoutTests:

  • inspector/styles/svg-style-expected.txt: Added.
  • inspector/styles/svg-style.xhtml: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r100250 r100251  
     12011-11-14  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Web Inspector: [Crash] Crash when inspecting namespaced SVG styled via element names
     4        https://bugs.webkit.org/show_bug.cgi?id=72261
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * inspector/styles/svg-style-expected.txt: Added.
     9        * inspector/styles/svg-style.xhtml: Added.
     10
    1112011-11-15  Czene Tamás  <tczene@inf.u-szeged.hu>
    212
  • trunk/Source/WebCore/ChangeLog

    r100247 r100251  
     12011-11-14  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Web Inspector: [Crash] Crash when inspecting namespaced SVG styled via element names
     4        https://bugs.webkit.org/show_bug.cgi?id=72261
     5
     6        Reviewed by Pavel Feldman.
     7
     8        Test: inspector/styles/svg-style.xhtml
     9
     10        * inspector/InspectorStyleSheet.cpp:
     11        (WebCore::InspectorStyleSheet::inlineStyleSheetText):
     12
    1132011-11-15  Kent Tamura  <tkent@chromium.org>
    214
  • trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp

    r99878 r100251  
    4040#include "Element.h"
    4141#include "HTMLHeadElement.h"
     42#include "HTMLNames.h"
    4243#include "HTMLParserIdioms.h"
    4344#include "InspectorCSSAgent.h"
     
    4546#include "InspectorValues.h"
    4647#include "Node.h"
     48#include "SVGNames.h"
    4749#include "StyleSheetList.h"
    4850#include "WebKitCSSKeyframesRule.h"
     
    11031105        return false;
    11041106    Element* ownerElement = static_cast<Element*>(ownerNode);
    1105     if (ownerElement->tagName().lower() != "style")
     1107
     1108    if (!ownerElement->hasTagName(HTMLNames::styleTag)
     1109#if ENABLE(SVG)
     1110        && !ownerElement->hasTagName(SVGNames::styleTag)
     1111#endif
     1112    )
    11061113        return false;
    11071114    *result = ownerElement->innerText();
Note: See TracChangeset for help on using the changeset viewer.