~ubuntu-branches/ubuntu/lucid/webkit/lucid-security

« back to all changes in this revision

Viewing changes to WebCore/html/HTMLElement.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2010-01-06 21:25:06 UTC
  • mfrom: (1.2.6 upstream) (4.3.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100106212506-gd0czn4zrwf1j19l
* New upstream release
- adds basic Content-Encoding support, thanks to soup
  (Closes: #529271)
- fixes over-advertising content types as supported by
  the media player (Closes: #559420)
* debian/control:
- updated libsoup build requirement (>= 2.28.2)
* debian/libwebkit-1.0-2.symbols:
- updated with new symbols
* debian/copyright:
- updated information since 1.1.17
* Imported patch from https://bugs.webkit.org/show_bug.cgi?id=30623
- I am shipping this patch because I believe it is correct, it is the
  way to go, it fixes a race, and it needs testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
        return 0;
89
89
    if (hasLocalName(addressTag) || hasLocalName(ddTag) || hasLocalName(dtTag) || hasLocalName(noscriptTag) || hasLocalName(rpTag) || hasLocalName(rtTag))
90
90
        return 3;
91
 
    if (hasLocalName(centerTag) || hasLocalName(nobrTag) || hasLocalName(rubyTag) || hasLocalName(navTag))
92
 
        return 5;
 
91
    if (hasLocalName(articleTag) || hasLocalName(asideTag) || hasLocalName(centerTag) || hasLocalName(nobrTag) || hasLocalName(rubyTag) || hasLocalName(navTag) || hasLocalName(sectionTag))
 
92
        return 5; // Same as <div>.
93
93
    if (hasLocalName(noembedTag) || hasLocalName(noframesTag))
94
94
        return 10;
95
95
 
114
114
    
115
115
void HTMLElement::parseMappedAttribute(MappedAttribute *attr)
116
116
{
117
 
    if (attr->name() == idAttr || attr->name() == classAttr || attr->name() == styleAttr)
 
117
    if (attr->name() == idAttributeName() || attr->name() == classAttr || attr->name() == styleAttr)
118
118
        return StyledElement::parseMappedAttribute(attr);
119
119
 
120
120
    String indexstring;
222
222
        setAttributeEventListener(eventNames().inputEvent, createAttributeEventListener(this, attr));
223
223
    } else if (attr->name() == oninvalidAttr) {
224
224
        setAttributeEventListener(eventNames().invalidEvent, createAttributeEventListener(this, attr));
 
225
    } else if (attr->name() == ontouchstartAttr) {
 
226
        setAttributeEventListener(eventNames().touchstartEvent, createAttributeEventListener(this, attr));
 
227
    } else if (attr->name() == ontouchmoveAttr) {
 
228
        setAttributeEventListener(eventNames().touchmoveEvent, createAttributeEventListener(this, attr));
 
229
    } else if (attr->name() == ontouchendAttr) {
 
230
        setAttributeEventListener(eventNames().touchendEvent, createAttributeEventListener(this, attr));
225
231
    }
226
232
}
227
233
 
858
864
    DEFINE_STATIC_LOCAL(HashSet<AtomicStringImpl*>, tagList, ());
859
865
    if (tagList.isEmpty()) {
860
866
        tagList.add(addressTag.localName().impl());
 
867
        tagList.add(articleTag.localName().impl());
 
868
        tagList.add(asideTag.localName().impl());
861
869
        tagList.add(blockquoteTag.localName().impl());
862
870
        tagList.add(centerTag.localName().impl());
863
871
        tagList.add(ddTag.localName().impl());
889
897
        tagList.add(pTag.localName().impl());
890
898
        tagList.add(plaintextTag.localName().impl());
891
899
        tagList.add(preTag.localName().impl());
 
900
        tagList.add(sectionTag.localName().impl());
892
901
        tagList.add(tableTag.localName().impl());
893
902
        tagList.add(ulTag.localName().impl());
894
903
        tagList.add(xmpTag.localName().impl());