| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * | 10 * |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 #include "core/xml/XMLErrors.h" | 30 #include "core/xml/XMLErrors.h" |
| 31 | 31 |
| 32 #include "HTMLNames.h" | 32 #include "HTMLNames.h" |
| 33 #include "SVGNames.h" | 33 #include "SVGNames.h" |
| 34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
| 35 #include "core/dom/Element.h" | 35 #include "core/dom/Element.h" |
| 36 #include "core/dom/Text.h" | 36 #include "core/dom/Text.h" |
| 37 #include "core/page/Frame.h" | |
| 38 #include <wtf/text/WTFString.h> | 37 #include <wtf/text/WTFString.h> |
| 39 | 38 |
| 40 namespace WebCore { | 39 namespace WebCore { |
| 41 | 40 |
| 42 using namespace HTMLNames; | 41 using namespace HTMLNames; |
| 43 | 42 |
| 44 const int maxErrors = 25; | 43 const int maxErrors = 25; |
| 45 | 44 |
| 46 XMLErrors::XMLErrors(Document* document) | 45 XMLErrors::XMLErrors(Document* document) |
| 47 : m_document(document) | 46 : m_document(document) |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 else | 159 else |
| 161 documentElement->parserAppendChild(reportElement); | 160 documentElement->parserAppendChild(reportElement); |
| 162 | 161 |
| 163 reportElement->lazyAttach(); | 162 reportElement->lazyAttach(); |
| 164 | 163 |
| 165 // FIXME: Why do we need to call this manually? | 164 // FIXME: Why do we need to call this manually? |
| 166 m_document->updateStyleIfNeeded(); | 165 m_document->updateStyleIfNeeded(); |
| 167 } | 166 } |
| 168 | 167 |
| 169 } // namespace WebCore | 168 } // namespace WebCore |
| OLD | NEW |