OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
39 | 39 |
40 namespace WebCore { | 40 namespace WebCore { |
41 | 41 |
42 class ContainerNode; | 42 class ContainerNode; |
43 class DOMEditor; | 43 class DOMEditor; |
44 class Document; | 44 class Document; |
45 class ExceptionState; | 45 class ExceptionState; |
46 class Node; | 46 class Node; |
47 | 47 |
48 class DOMPatchSupport { | 48 class DOMPatchSupport FINAL { |
49 WTF_MAKE_NONCOPYABLE(DOMPatchSupport); | 49 WTF_MAKE_NONCOPYABLE(DOMPatchSupport); |
50 public: | 50 public: |
51 static void patchDocument(Document&, const String& markup); | 51 static void patchDocument(Document&, const String& markup); |
52 | 52 |
53 DOMPatchSupport(DOMEditor*, Document&); | 53 DOMPatchSupport(DOMEditor*, Document&); |
54 | 54 |
55 void patchDocument(const String& markup); | 55 void patchDocument(const String& markup); |
56 Node* patchNode(Node*, const String& markup, ExceptionState&); | 56 Node* patchNode(Node*, const String& markup, ExceptionState&); |
57 | 57 |
58 private: | 58 private: |
(...skipping 15 matching lines...) Expand all Loading... |
74 DOMEditor* m_domEditor; | 74 DOMEditor* m_domEditor; |
75 Document& m_document; | 75 Document& m_document; |
76 | 76 |
77 UnusedNodesMap m_unusedNodesMap; | 77 UnusedNodesMap m_unusedNodesMap; |
78 }; | 78 }; |
79 | 79 |
80 | 80 |
81 } // namespace WebCore | 81 } // namespace WebCore |
82 | 82 |
83 #endif // !defined(DOMPatchSupport_h) | 83 #endif // !defined(DOMPatchSupport_h) |
OLD | NEW |