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

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

Issue 2842933002: De-duplicate create element code paths in the HTML parser. (Closed)
Patch Set: Created 3 years, 7 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
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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 const String& public_id, 249 const String& public_id,
250 const String& system_id); 250 const String& system_id);
251 251
252 void AttachLater(ContainerNode* parent, 252 void AttachLater(ContainerNode* parent,
253 Node* child, 253 Node* child,
254 bool self_closing = false); 254 bool self_closing = false);
255 255
256 void FindFosterSite(HTMLConstructionSiteTask&); 256 void FindFosterSite(HTMLConstructionSiteTask&);
257 257
258 CreateElementFlags GetCreateElementFlags() const; 258 CreateElementFlags GetCreateElementFlags() const;
259 HTMLElement* CreateHTMLElement(AtomicHTMLToken*);
260 Element* CreateElement(AtomicHTMLToken*, const AtomicString& namespace_uri); 259 Element* CreateElement(AtomicHTMLToken*, const AtomicString& namespace_uri);
261 260
262 void MergeAttributesFromTokenIntoElement(AtomicHTMLToken*, Element*); 261 void MergeAttributesFromTokenIntoElement(AtomicHTMLToken*, Element*);
263 262
264 void ExecuteTask(HTMLConstructionSiteTask&); 263 void ExecuteTask(HTMLConstructionSiteTask&);
265 void QueueTask(const HTMLConstructionSiteTask&); 264 void QueueTask(const HTMLConstructionSiteTask&);
266 265
267 CustomElementDefinition* LookUpCustomElementDefinition(Document&, 266 CustomElementDefinition* LookUpCustomElementDefinition(Document&,
268 AtomicHTMLToken*); 267 AtomicHTMLToken*);
269 268
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 // "whenever a node would be inserted into the current node, it must instead 341 // "whenever a node would be inserted into the current node, it must instead
343 // be foster parented." This flag tracks whether we're in that state. 342 // be foster parented." This flag tracks whether we're in that state.
344 bool redirect_attach_to_foster_parent_; 343 bool redirect_attach_to_foster_parent_;
345 344
346 bool in_quirks_mode_; 345 bool in_quirks_mode_;
347 }; 346 };
348 347
349 } // namespace blink 348 } // namespace blink
350 349
351 #endif // HTMLConstructionSite_h 350 #endif // HTMLConstructionSite_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698