OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 if (qName.namespaceURI() == xhtmlNamespaceURI) | 987 if (qName.namespaceURI() == xhtmlNamespaceURI) |
988 e = HTMLElementFactory::createHTMLElement(qName, document(), 0, createdB
yParser); | 988 e = HTMLElementFactory::createHTMLElement(qName, document(), 0, createdB
yParser); |
989 else if (qName.namespaceURI() == SVGNames::svgNamespaceURI) | 989 else if (qName.namespaceURI() == SVGNames::svgNamespaceURI) |
990 e = SVGElementFactory::createSVGElement(qName, document(), createdByPars
er); | 990 e = SVGElementFactory::createSVGElement(qName, document(), createdByPars
er); |
991 | 991 |
992 if (e) | 992 if (e) |
993 m_sawElementsInKnownNamespaces = true; | 993 m_sawElementsInKnownNamespaces = true; |
994 else | 994 else |
995 e = Element::create(qName, &document()); | 995 e = Element::create(qName, &document()); |
996 | 996 |
| 997 if (e->prefix() != qName.prefix()) |
| 998 e->setTagNameForCreateElementNS(qName); |
| 999 |
997 // <image> uses imgTag so we need a special rule. | 1000 // <image> uses imgTag so we need a special rule. |
998 ASSERT((qName.matches(imageTag) && e->tagQName().matches(imgTag) && e->tagQN
ame().prefix() == qName.prefix()) || qName == e->tagQName()); | 1001 ASSERT((qName.matches(imageTag) && e->tagQName().matches(imgTag) && e->tagQN
ame().prefix() == qName.prefix()) || qName == e->tagQName()); |
999 | 1002 |
1000 return e.release(); | 1003 return e.release(); |
1001 } | 1004 } |
1002 | 1005 |
1003 bool Document::regionBasedColumnsEnabled() const | 1006 bool Document::regionBasedColumnsEnabled() const |
1004 { | 1007 { |
1005 return settings() && settings()->regionBasedColumnsEnabled(); | 1008 return settings() && settings()->regionBasedColumnsEnabled(); |
1006 } | 1009 } |
(...skipping 4184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5191 void Document::modifiedStyleSheet(StyleSheet* sheet, RecalcStyleTime when, Style
ResolverUpdateMode updateMode) | 5194 void Document::modifiedStyleSheet(StyleSheet* sheet, RecalcStyleTime when, Style
ResolverUpdateMode updateMode) |
5192 { | 5195 { |
5193 if (!isActive()) | 5196 if (!isActive()) |
5194 return; | 5197 return; |
5195 | 5198 |
5196 styleEngine()->modifiedStyleSheet(sheet); | 5199 styleEngine()->modifiedStyleSheet(sheet); |
5197 styleResolverChanged(when, updateMode); | 5200 styleResolverChanged(when, updateMode); |
5198 } | 5201 } |
5199 | 5202 |
5200 } // namespace WebCore | 5203 } // namespace WebCore |
OLD | NEW |