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

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

Issue 1461193003: Revert of [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make patch applicable Created 5 years 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
384 PassRefPtrWillBeRawPtr<HTMLFormElement> HTMLConstructionSite::takeForm() 379 PassRefPtrWillBeRawPtr<HTMLFormElement> HTMLConstructionSite::takeForm()
385 { 380 {
386 return m_form.release(); 381 return m_form.release();
387 } 382 }
388 383
389 void HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded() 384 void HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded()
390 { 385 {
391 ASSERT(m_document); 386 ASSERT(m_document);
392 if (m_document->frame() && !m_isParsingFragment) 387 if (m_document->frame() && !m_isParsingFragment)
393 m_document->frame()->loader().dispatchDocumentElementAvailable(); 388 m_document->frame()->loader().dispatchDocumentElementAvailable();
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 } 873 }
879 874
880 DEFINE_TRACE(HTMLConstructionSite::PendingText) 875 DEFINE_TRACE(HTMLConstructionSite::PendingText)
881 { 876 {
882 visitor->trace(parent); 877 visitor->trace(parent);
883 visitor->trace(nextChild); 878 visitor->trace(nextChild);
884 } 879 }
885 880
886 881
887 } 882 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698