| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 Document& ownerDocumentForCurrentNode(); | 113 Document& ownerDocumentForCurrentNode(); |
| 114 HTMLElementStack* openElements() const { return &m_openElements; } | 114 HTMLElementStack* openElements() const { return &m_openElements; } |
| 115 | 115 |
| 116 private: | 116 private: |
| 117 // In the common case, this queue will have only one task because most | 117 // In the common case, this queue will have only one task because most |
| 118 // tokens produce only one DOM mutation. | 118 // tokens produce only one DOM mutation. |
| 119 typedef Vector<HTMLConstructionSiteTask, 1> TaskQueue; | 119 typedef Vector<HTMLConstructionSiteTask, 1> TaskQueue; |
| 120 | 120 |
| 121 void attachLater(ContainerNode* parent, PassRefPtr<Node> child, bool selfClo
sing = false); | 121 void attachLater(ContainerNode* parent, PassRefPtr<Node> child, bool selfClo
sing = false); |
| 122 | 122 |
| 123 PassRefPtr<HTMLElement> createHTMLElement(AtomicHTMLToken*); | 123 PassRefPtr<Element> createElement(AtomicHTMLToken*); |
| 124 PassRefPtr<Element> createElement(AtomicHTMLToken*, const AtomicString& name
spaceURI); | |
| 125 | 124 |
| 126 void queueTask(const HTMLConstructionSiteTask&); | 125 void queueTask(const HTMLConstructionSiteTask&); |
| 127 | 126 |
| 128 RawPtr<Document> m_document; | 127 RawPtr<Document> m_document; |
| 129 | 128 |
| 130 // This is the root ContainerNode to which the parser attaches all newly | 129 // This is the root ContainerNode to which the parser attaches all newly |
| 131 // constructed nodes. It points to a DocumentFragment when parsing fragments | 130 // constructed nodes. It points to a DocumentFragment when parsing fragments |
| 132 // and a Document in all other cases. | 131 // and a Document in all other cases. |
| 133 RawPtr<ContainerNode> m_attachmentRoot; | 132 RawPtr<ContainerNode> m_attachmentRoot; |
| 134 | 133 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 RefPtr<Node> nextChild; | 173 RefPtr<Node> nextChild; |
| 175 StringBuilder stringBuilder; | 174 StringBuilder stringBuilder; |
| 176 }; | 175 }; |
| 177 | 176 |
| 178 PendingText m_pendingText; | 177 PendingText m_pendingText; |
| 179 }; | 178 }; |
| 180 | 179 |
| 181 } // namespace blink | 180 } // namespace blink |
| 182 | 181 |
| 183 #endif // SKY_ENGINE_CORE_HTML_PARSER_HTMLCONSTRUCTIONSITE_H_ | 182 #endif // SKY_ENGINE_CORE_HTML_PARSER_HTMLCONSTRUCTIONSITE_H_ |
| OLD | NEW |