Changeset 25802 in webkit


Ignore:
Timestamp:
Sep 28, 2007 8:26:51 PM (17 years ago)
Author:
eseidel
Message:

2007-09-28 Eric Seidel <eric@webkit.org>

Reviewed by Sam Wenig.

ASSERT when dragging <svg:image> with non-null prefix
http://bugs.webkit.org/show_bug.cgi?id=15308

  • bindings/objc/DOM.mm: (WebCore::lookupElementClass): added (WebCore::elementClass): use new lookupElementClass function
Location:
branches/feature-branch
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-branch/LayoutTests/ChangeLog

    r25460 r25802  
     12007-09-28  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Sam Wenig.
     4       
     5        Elements with a prefix cause ASSERT when creating WebArchive
     6        http://bugs.webkit.org/show_bug.cgi?id=15308
     7
     8        * svg/custom/image-with-prefix-in-webarchive-expected.txt: Added.
     9        * svg/custom/image-with-prefix-in-webarchive.svg: Added.
     10
    1112007-09-09  Nikolas Zimmermann  <zimmermann@kde.org>
    212
  • branches/feature-branch/WebCore/ChangeLog

    r25748 r25802  
     12007-09-28  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Sam Wenig.
     4
     5        ASSERT when dragging <svg:image> with non-null prefix
     6        http://bugs.webkit.org/show_bug.cgi?id=15308
     7
     8        * bindings/objc/DOM.mm:
     9        (WebCore::lookupElementClass): added
     10        (WebCore::elementClass): use new lookupElementClass function
     11
    1122007-09-25  Eric Seidel  <eric@webkit.org>
    213
  • branches/feature-branch/WebCore/bindings/objc/DOM.mm

    r24628 r25802  
    252252}
    253253
     254static Class lookupElementClass(const QualifiedName& tag)
     255{
     256    // Do a special lookup to ignore element prefixes
     257    if (tag.hasPrefix())
     258        return elementClassMap->get(QualifiedName(nullAtom, tag.localName(), tag.namespaceURI()).impl());
     259   
     260    return elementClassMap->get(tag.impl());
     261}
     262
    254263static Class elementClass(const QualifiedName& tag, Class defaultClass)
    255264{
    256265    if (!elementClassMap)
    257266        createElementClassMap();
    258     Class objcClass = elementClassMap->get(tag.impl());
     267    Class objcClass = lookupElementClass(tag);
    259268    if (!objcClass)
    260269        objcClass = defaultClass;
Note: See TracChangeset for help on using the changeset viewer.