--- a/webengine/osswebengine/WebCore/dom/StyledElement.cpp Fri Jul 03 15:54:40 2009 +0100
+++ b/webengine/osswebengine/WebCore/dom/StyledElement.cpp Thu Aug 27 07:44:59 2009 +0300
@@ -71,22 +71,20 @@
static MappedAttributeDecls* mappedAttributeDecls = 0;
-struct mappedAttributeCleaner {
- ~mappedAttributeCleaner() {
- if( mappedAttributeDecls ) {
- MappedAttributeDeclsIterator end = mappedAttributeDecls->end();
- for (MappedAttributeDeclsIterator it = mappedAttributeDecls->begin(); it != end; ++it)
- {
- MappedAttributeKey* obj = (*it).first;
- delete obj;
- }
- mappedAttributeDecls->clear();
- delete mappedAttributeDecls;
- mappedAttributeDecls = 0;
- }
+void mappedAttributeCleaner()
+{
+ if( mappedAttributeDecls ) {
+ MappedAttributeDeclsIterator end = mappedAttributeDecls->end();
+ for (MappedAttributeDeclsIterator it = mappedAttributeDecls->begin(); it != end; ++it)
+ {
+ MappedAttributeKey* obj = (*it).first;
+ delete obj;
+ }
+ mappedAttributeDecls->clear();
+ delete mappedAttributeDecls;
+ mappedAttributeDecls = 0;
}
-};
-struct mappedAttributeCleaner mappedAttribute;
+}
CSSMappedAttributeDeclaration* StyledElement::getMappedAttributeDecl(MappedAttributeEntry entryType, Attribute* attr)
{