| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 ASSERT(breakIndex > currentPosition); | 270 ASSERT(breakIndex > currentPosition); |
| 271 ASSERT(breakIndex - currentPosition == substring.length()); | 271 ASSERT(breakIndex - currentPosition == substring.length()); |
| 272 ASSERT(toText(task.child.get())->length() == substring.length()); | 272 ASSERT(toText(task.child.get())->length() == substring.length()); |
| 273 currentPosition = breakIndex; | 273 currentPosition = breakIndex; |
| 274 } | 274 } |
| 275 } | 275 } |
| 276 | 276 |
| 277 void HTMLConstructionSite::queueTask(const HTMLConstructionSiteTask& task) { | 277 void HTMLConstructionSite::queueTask(const HTMLConstructionSiteTask& task) { |
| 278 flushPendingText(FlushAlways); | 278 flushPendingText(FlushAlways); |
| 279 ASSERT(m_pendingText.isEmpty()); | 279 ASSERT(m_pendingText.isEmpty()); |
| 280 m_taskQueue.append(task); | 280 m_taskQueue.push_back(task); |
| 281 } | 281 } |
| 282 | 282 |
| 283 void HTMLConstructionSite::attachLater(ContainerNode* parent, | 283 void HTMLConstructionSite::attachLater(ContainerNode* parent, |
| 284 Node* child, | 284 Node* child, |
| 285 bool selfClosing) { | 285 bool selfClosing) { |
| 286 ASSERT(scriptingContentIsAllowed(m_parserContentPolicy) || | 286 ASSERT(scriptingContentIsAllowed(m_parserContentPolicy) || |
| 287 !child->isElementNode() || | 287 !child->isElementNode() || |
| 288 !toScriptLoaderIfPossible(toElement(child))); | 288 !toScriptLoaderIfPossible(toElement(child))); |
| 289 ASSERT(pluginContentIsAllowed(m_parserContentPolicy) || | 289 ASSERT(pluginContentIsAllowed(m_parserContentPolicy) || |
| 290 !isHTMLPlugInElement(child)); | 290 !isHTMLPlugInElement(child)); |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1071 ASSERT(task.parent); | 1071 ASSERT(task.parent); |
| 1072 queueTask(task); | 1072 queueTask(task); |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 DEFINE_TRACE(HTMLConstructionSite::PendingText) { | 1075 DEFINE_TRACE(HTMLConstructionSite::PendingText) { |
| 1076 visitor->trace(parent); | 1076 visitor->trace(parent); |
| 1077 visitor->trace(nextChild); | 1077 visitor->trace(nextChild); |
| 1078 } | 1078 } |
| 1079 | 1079 |
| 1080 } // namespace blink | 1080 } // namespace blink |
| OLD | NEW |