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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT Created 5 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 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 m_attachmentRoot = nullptr; 369 m_attachmentRoot = nullptr;
370 } 370 }
371 371
372 void HTMLConstructionSite::setForm(HTMLFormElement* form) 372 void HTMLConstructionSite::setForm(HTMLFormElement* form)
373 { 373 {
374 // This method should only be needed for HTMLTreeBuilder in the fragment cas e. 374 // This method should only be needed for HTMLTreeBuilder in the fragment cas e.
375 ASSERT(!m_form); 375 ASSERT(!m_form);
376 m_form = form; 376 m_form = form;
377 } 377 }
378 378
379 HTMLFormElement* HTMLConstructionSite::form() const
380 {
381 return m_form.get();
382 }
383
379 PassRefPtrWillBeRawPtr<HTMLFormElement> HTMLConstructionSite::takeForm() 384 PassRefPtrWillBeRawPtr<HTMLFormElement> HTMLConstructionSite::takeForm()
380 { 385 {
381 return m_form.release(); 386 return m_form.release();
382 } 387 }
383 388
384 void HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded() 389 void HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded()
385 { 390 {
386 ASSERT(m_document); 391 ASSERT(m_document);
387 if (m_document->frame() && !m_isParsingFragment) 392 if (m_document->frame() && !m_isParsingFragment)
388 m_document->frame()->loader().dispatchDocumentElementAvailable(); 393 m_document->frame()->loader().dispatchDocumentElementAvailable();
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 } 878 }
874 879
875 DEFINE_TRACE(HTMLConstructionSite::PendingText) 880 DEFINE_TRACE(HTMLConstructionSite::PendingText)
876 { 881 {
877 visitor->trace(parent); 882 visitor->trace(parent);
878 visitor->trace(nextChild); 883 visitor->trace(nextChild);
879 } 884 }
880 885
881 886
882 } 887 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698