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

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

Issue 14327009: XSSAuditor performance regression in M26 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 * 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 , m_weakFactory(this) 111 , m_weakFactory(this)
112 #endif 112 #endif
113 , m_isPinnedToMainThread(true) 113 , m_isPinnedToMainThread(true)
114 , m_endWasDelayed(false) 114 , m_endWasDelayed(false)
115 , m_haveBackgroundParser(false) 115 , m_haveBackgroundParser(false)
116 , m_pumpSessionNestingLevel(0) 116 , m_pumpSessionNestingLevel(0)
117 { 117 {
118 ASSERT(!shouldUseThreading()); 118 ASSERT(!shouldUseThreading());
119 bool reportErrors = false; // For now document fragment parsing never report s errors. 119 bool reportErrors = false; // For now document fragment parsing never report s errors.
120 m_tokenizer->setState(tokenizerStateForContextElement(contextElement, report Errors, m_options)); 120 m_tokenizer->setState(tokenizerStateForContextElement(contextElement, report Errors, m_options));
121 m_xssAuditor.initForFragment();
121 } 122 }
122 123
123 HTMLDocumentParser::~HTMLDocumentParser() 124 HTMLDocumentParser::~HTMLDocumentParser()
124 { 125 {
125 ASSERT(!m_parserScheduler); 126 ASSERT(!m_parserScheduler);
126 ASSERT(!m_pumpSessionNestingLevel); 127 ASSERT(!m_pumpSessionNestingLevel);
127 ASSERT(!m_preloadScanner); 128 ASSERT(!m_preloadScanner);
128 ASSERT(!m_insertionPreloadScanner); 129 ASSERT(!m_insertionPreloadScanner);
129 ASSERT(!m_haveBackgroundParser); 130 ASSERT(!m_haveBackgroundParser);
130 // FIXME: We should be able to ASSERT(m_speculations.isEmpty()), 131 // FIXME: We should be able to ASSERT(m_speculations.isEmpty()),
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 m_parserScheduler->suspend(); 980 m_parserScheduler->suspend();
980 } 981 }
981 982
982 void HTMLDocumentParser::resumeScheduledTasks() 983 void HTMLDocumentParser::resumeScheduledTasks()
983 { 984 {
984 if (m_parserScheduler) 985 if (m_parserScheduler)
985 m_parserScheduler->resume(); 986 m_parserScheduler->resume();
986 } 987 }
987 988
988 } 989 }
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/parser/XSSAuditor.h » ('j') | Source/core/html/parser/XSSAuditor.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698