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

Side by Side Diff: Source/core/html/parser/HTMLTreeBuilder.cpp

Issue 171773008: Rename childNodeCount() / childNode() methods for clarity (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Further renaming for consistency Created 6 years, 10 months 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 | Annotate | Revision Log
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 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 } 336 }
337 337
338 HTMLTreeBuilder::FragmentParsingContext::FragmentParsingContext() 338 HTMLTreeBuilder::FragmentParsingContext::FragmentParsingContext()
339 : m_fragment(0) 339 : m_fragment(0)
340 { 340 {
341 } 341 }
342 342
343 HTMLTreeBuilder::FragmentParsingContext::FragmentParsingContext(DocumentFragment * fragment, Element* contextElement) 343 HTMLTreeBuilder::FragmentParsingContext::FragmentParsingContext(DocumentFragment * fragment, Element* contextElement)
344 : m_fragment(fragment) 344 : m_fragment(fragment)
345 { 345 {
346 ASSERT(!fragment->hasChildNodes()); 346 ASSERT(!fragment->hasChildren());
347 m_contextElementStackItem = HTMLStackItem::create(contextElement, HTMLStackI tem::ItemForContextElement); 347 m_contextElementStackItem = HTMLStackItem::create(contextElement, HTMLStackI tem::ItemForContextElement);
348 } 348 }
349 349
350 HTMLTreeBuilder::FragmentParsingContext::~FragmentParsingContext() 350 HTMLTreeBuilder::FragmentParsingContext::~FragmentParsingContext()
351 { 351 {
352 } 352 }
353 353
354 PassRefPtr<Element> HTMLTreeBuilder::takeScriptToProcess(TextPosition& scriptSta rtPosition) 354 PassRefPtr<Element> HTMLTreeBuilder::takeScriptToProcess(TextPosition& scriptSta rtPosition)
355 { 355 {
356 ASSERT(m_scriptToProcess); 356 ASSERT(m_scriptToProcess);
(...skipping 2486 matching lines...) Expand 10 before | Expand all | Expand 10 after
2843 ASSERT(m_isAttached); 2843 ASSERT(m_isAttached);
2844 // Warning, this may detach the parser. Do not do anything else after this. 2844 // Warning, this may detach the parser. Do not do anything else after this.
2845 m_tree.finishedParsing(); 2845 m_tree.finishedParsing();
2846 } 2846 }
2847 2847
2848 void HTMLTreeBuilder::parseError(AtomicHTMLToken*) 2848 void HTMLTreeBuilder::parseError(AtomicHTMLToken*)
2849 { 2849 {
2850 } 2850 }
2851 2851
2852 } // namespace WebCore 2852 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/forms/TextFieldInputType.cpp ('k') | Source/core/html/shadow/MediaControlElements.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698