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

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

Issue 15796009: Parse SVG as HTML (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compile issue (the tree moved). Ready for landing Created 7 years, 6 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
« no previous file with comments | « Source/core/html/parser/HTMLTreeBuilder.h ('k') | Source/core/html/parser/TextDocumentParser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 if (start == m_current) 262 if (start == m_current)
263 return String(); 263 return String();
264 return String(m_characters->substring(start, m_current - start)); 264 return String(m_characters->substring(start, m_current - start));
265 } 265 }
266 266
267 RefPtr<StringImpl> m_characters; 267 RefPtr<StringImpl> m_characters;
268 unsigned m_current; 268 unsigned m_current;
269 unsigned m_end; 269 unsigned m_end;
270 }; 270 };
271 271
272 HTMLTreeBuilder::HTMLTreeBuilder(HTMLDocumentParser* parser, HTMLDocument* docum ent, ParserContentPolicy parserContentPolicy, bool, const HTMLParserOptions& opt ions) 272 HTMLTreeBuilder::HTMLTreeBuilder(HTMLDocumentParser* parser, Document* document, ParserContentPolicy parserContentPolicy, bool, const HTMLParserOptions& options )
273 : m_framesetOk(true) 273 : m_framesetOk(true)
274 #ifndef NDEBUG 274 #ifndef NDEBUG
275 , m_isAttached(true) 275 , m_isAttached(true)
276 #endif 276 #endif
277 , m_tree(document, parserContentPolicy) 277 , m_tree(document, parserContentPolicy)
278 , m_insertionMode(InitialMode) 278 , m_insertionMode(InitialMode)
279 , m_originalInsertionMode(InitialMode) 279 , m_originalInsertionMode(InitialMode)
280 , m_shouldSkipLeadingNewline(false) 280 , m_shouldSkipLeadingNewline(false)
281 , m_parser(parser) 281 , m_parser(parser)
282 , m_scriptToProcessStartPosition(uninitializedPositionValue1()) 282 , m_scriptToProcessStartPosition(uninitializedPositionValue1())
(...skipping 2524 matching lines...) Expand 10 before | Expand all | Expand 10 after
2807 ASSERT(m_isAttached); 2807 ASSERT(m_isAttached);
2808 // Warning, this may detach the parser. Do not do anything else after this. 2808 // Warning, this may detach the parser. Do not do anything else after this.
2809 m_tree.finishedParsing(); 2809 m_tree.finishedParsing();
2810 } 2810 }
2811 2811
2812 void HTMLTreeBuilder::parseError(AtomicHTMLToken*) 2812 void HTMLTreeBuilder::parseError(AtomicHTMLToken*)
2813 { 2813 {
2814 } 2814 }
2815 2815
2816 } 2816 }
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLTreeBuilder.h ('k') | Source/core/html/parser/TextDocumentParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698