Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: sky/engine/core/html/parser/HTMLTreeBuilder.cpp

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * Copyright (C) 2011, 2014 Apple Inc. All rights reserved. 3 * Copyright (C) 2011, 2014 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 HTMLTreeBuilder::FragmentParsingContext::FragmentParsingContext(DocumentFragment * fragment, Element* contextElement) 83 HTMLTreeBuilder::FragmentParsingContext::FragmentParsingContext(DocumentFragment * fragment, Element* contextElement)
84 : m_fragment(fragment) 84 : m_fragment(fragment)
85 { 85 {
86 ASSERT(!fragment->hasChildren()); 86 ASSERT(!fragment->hasChildren());
87 } 87 }
88 88
89 HTMLTreeBuilder::FragmentParsingContext::~FragmentParsingContext() 89 HTMLTreeBuilder::FragmentParsingContext::~FragmentParsingContext()
90 { 90 {
91 } 91 }
92 92
93 void HTMLTreeBuilder::FragmentParsingContext::trace(Visitor* visitor)
94 {
95 visitor->trace(m_fragment);
96 }
97
98 PassRefPtr<Element> HTMLTreeBuilder::takeScriptToProcess(TextPosition& scriptSta rtPosition) 93 PassRefPtr<Element> HTMLTreeBuilder::takeScriptToProcess(TextPosition& scriptSta rtPosition)
99 { 94 {
100 ASSERT(m_scriptToProcess); 95 ASSERT(m_scriptToProcess);
101 ASSERT(!m_tree.hasPendingTasks()); 96 ASSERT(!m_tree.hasPendingTasks());
102 // Unpause ourselves, callers may pause us again when processing the script. 97 // Unpause ourselves, callers may pause us again when processing the script.
103 // The HTML5 spec is written as though scripts are executed inside the tree 98 // The HTML5 spec is written as though scripts are executed inside the tree
104 // builder. We pause the parser to exit the tree builder, and then resume 99 // builder. We pause the parser to exit the tree builder, and then resume
105 // before running scripts. 100 // before running scripts.
106 scriptStartPosition = m_scriptToProcessStartPosition; 101 scriptStartPosition = m_scriptToProcessStartPosition;
107 m_scriptToProcessStartPosition = uninitializedPositionValue1(); 102 m_scriptToProcessStartPosition = uninitializedPositionValue1();
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 void HTMLTreeBuilder::finished() 211 void HTMLTreeBuilder::finished()
217 { 212 {
218 if (isParsingFragment()) 213 if (isParsingFragment())
219 return; 214 return;
220 ASSERT(m_isAttached); 215 ASSERT(m_isAttached);
221 // Warning, this may detach the parser. Do not do anything else after this. 216 // Warning, this may detach the parser. Do not do anything else after this.
222 m_tree.finishedParsing(); 217 m_tree.finishedParsing();
223 } 218 }
224 219
225 } // namespace blink 220 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/html/parser/HTMLTreeBuilder.h ('k') | sky/engine/core/inspector/CodeGeneratorInspectorStrings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698