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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.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, 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 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 break; 595 break;
596 596
597 if (m_speculations.isEmpty() || m_parserScheduler->yieldIfNeeded(session , m_speculations.first()->startingScript)) 597 if (m_speculations.isEmpty() || m_parserScheduler->yieldIfNeeded(session , m_speculations.first()->startingScript))
598 break; 598 break;
599 } 599 }
600 600
601 TRACE_EVENT_END1("devtools.timeline", "ParseHTML", "endData", InspectorParse HtmlEvent::endData(lineNumber().zeroBasedInt() - 1)); 601 TRACE_EVENT_END1("devtools.timeline", "ParseHTML", "endData", InspectorParse HtmlEvent::endData(lineNumber().zeroBasedInt() - 1));
602 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Update Counters", TRACE_EVENT_SCOPE_THREAD, "data", InspectorUpdateCountersEvent::data( )); 602 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Update Counters", TRACE_EVENT_SCOPE_THREAD, "data", InspectorUpdateCountersEvent::data( ));
603 } 603 }
604 604
605 HTMLTreeBuilder* HTMLDocumentParser::treeBuilder() const
606 {
607 return m_treeBuilder.get();
608 }
609
610 void HTMLDocumentParser::forcePlaintextForTextDocument() 605 void HTMLDocumentParser::forcePlaintextForTextDocument()
611 { 606 {
612 if (shouldUseThreading()) { 607 if (shouldUseThreading()) {
613 // This method is called before any data is appended, so we have to star t 608 // This method is called before any data is appended, so we have to star t
614 // the background parser ourselves. 609 // the background parser ourselves.
615 if (!m_haveBackgroundParser) 610 if (!m_haveBackgroundParser)
616 startBackgroundParser(); 611 startBackgroundParser();
617 612
618 HTMLParserThread::shared()->postTask(threadSafeBind(&BackgroundHTMLParse r::forcePlaintextForTextDocument, AllowCrossThreadAccess(m_backgroundParser))); 613 HTMLParserThread::shared()->postTask(threadSafeBind(&BackgroundHTMLParse r::forcePlaintextForTextDocument, AllowCrossThreadAccess(m_backgroundParser)));
619 } else 614 } else
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 void HTMLDocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder> decoder) 1156 void HTMLDocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder> decoder)
1162 { 1157 {
1163 ASSERT(decoder); 1158 ASSERT(decoder);
1164 DecodedDataDocumentParser::setDecoder(decoder); 1159 DecodedDataDocumentParser::setDecoder(decoder);
1165 1160
1166 if (m_haveBackgroundParser) 1161 if (m_haveBackgroundParser)
1167 HTMLParserThread::shared()->postTask(threadSafeBind(&BackgroundHTMLParse r::setDecoder, AllowCrossThreadAccess(m_backgroundParser), takeDecoder())); 1162 HTMLParserThread::shared()->postTask(threadSafeBind(&BackgroundHTMLParse r::setDecoder, AllowCrossThreadAccess(m_backgroundParser), takeDecoder()));
1168 } 1163 }
1169 1164
1170 } 1165 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h ('k') | third_party/WebKit/Source/core/html/track/TrackBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698