| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 STACK_ALLOCATED(); | 38 STACK_ALLOCATED(); |
| 39 WTF_MAKE_NONCOPYABLE(XMLDocumentParserScope); | 39 WTF_MAKE_NONCOPYABLE(XMLDocumentParserScope); |
| 40 public: | 40 public: |
| 41 explicit XMLDocumentParserScope(Document*); | 41 explicit XMLDocumentParserScope(Document*); |
| 42 XMLDocumentParserScope(Document*, xmlGenericErrorFunc, xmlStructuredErrorFun
c = 0, void* errorContext = 0); | 42 XMLDocumentParserScope(Document*, xmlGenericErrorFunc, xmlStructuredErrorFun
c = 0, void* errorContext = 0); |
| 43 ~XMLDocumentParserScope(); | 43 ~XMLDocumentParserScope(); |
| 44 | 44 |
| 45 static Document* currentDocument; | 45 static Document* currentDocument; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 RawPtrWillBeMember<Document> m_oldDocument; | 48 Member<Document> m_oldDocument; |
| 49 | 49 |
| 50 xmlGenericErrorFunc m_oldGenericErrorFunc; | 50 xmlGenericErrorFunc m_oldGenericErrorFunc; |
| 51 xmlStructuredErrorFunc m_oldStructuredErrorFunc; | 51 xmlStructuredErrorFunc m_oldStructuredErrorFunc; |
| 52 void* m_oldErrorContext; | 52 void* m_oldErrorContext; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace blink | 55 } // namespace blink |
| 56 | 56 |
| 57 #endif // XMLDocumentParserScope_h | 57 #endif // XMLDocumentParserScope_h |
| OLD | NEW |