Changeset 140635 in webkit
- Timestamp:
- Jan 23, 2013 7:24:32 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r140633 r140635 1 2013-01-23 Adam Barth <abarth@webkit.org> 2 3 BackgroundHTMLParser should use more const references to avoid copy constructors 4 https://bugs.webkit.org/show_bug.cgi?id=107763 5 6 Reviewed by Tony Gentilcore. 7 8 I doubt this optimization is visible anywhere, but it's just a nit. 9 10 * html/parser/BackgroundHTMLParser.cpp: 11 (WebCore::BackgroundHTMLParser::BackgroundHTMLParser): 12 (WebCore::BackgroundHTMLParser::createPartial): 13 * html/parser/BackgroundHTMLParser.h: 14 (WebCore::BackgroundHTMLParser::create): 15 (BackgroundHTMLParser): 16 1 17 2013-01-23 Abhishek Arya <inferno@chromium.org> 2 18 -
trunk/Source/WebCore/html/parser/BackgroundHTMLParser.cpp
r140589 r140635 83 83 } 84 84 85 BackgroundHTMLParser::BackgroundHTMLParser(const HTMLParserOptions& options, WeakPtr<HTMLDocumentParser>parser)85 BackgroundHTMLParser::BackgroundHTMLParser(const HTMLParserOptions& options, const WeakPtr<HTMLDocumentParser>& parser) 86 86 : m_inForeignContent(false) 87 87 , m_tokenizer(HTMLTokenizer::create(options)) … … 179 179 } 180 180 181 void BackgroundHTMLParser::createPartial(ParserIdentifier identifier, HTMLParserOptions options, WeakPtr<HTMLDocumentParser>parser)181 void BackgroundHTMLParser::createPartial(ParserIdentifier identifier, const HTMLParserOptions& options, const WeakPtr<HTMLDocumentParser>& parser) 182 182 { 183 183 ASSERT(!parserMap().backgroundParsers().get(identifier)); -
trunk/Source/WebCore/html/parser/BackgroundHTMLParser.h
r140589 r140635 46 46 void finish(); 47 47 48 static PassOwnPtr<BackgroundHTMLParser> create(const HTMLParserOptions& options, WeakPtr<HTMLDocumentParser>parser)48 static PassOwnPtr<BackgroundHTMLParser> create(const HTMLParserOptions& options, const WeakPtr<HTMLDocumentParser>& parser) 49 49 { 50 50 return adoptPtr(new BackgroundHTMLParser(options, parser)); 51 51 } 52 52 53 static void createPartial(ParserIdentifier, HTMLParserOptions, WeakPtr<HTMLDocumentParser>);53 static void createPartial(ParserIdentifier, const HTMLParserOptions&, const WeakPtr<HTMLDocumentParser>&); 54 54 static void stopPartial(ParserIdentifier); 55 55 static void appendPartial(ParserIdentifier, const String& input); … … 57 57 58 58 private: 59 BackgroundHTMLParser(const HTMLParserOptions&, WeakPtr<HTMLDocumentParser>);59 BackgroundHTMLParser(const HTMLParserOptions&, const WeakPtr<HTMLDocumentParser>&); 60 60 61 61 void markEndOfFile();
Note: See TracChangeset
for help on using the changeset viewer.