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

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

Issue 2292433002: CL for perf tryjob on linux (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditingUtilities.cpp ('k') | tools/run-perf-test.cfg » ('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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 // level. 829 // level.
830 if (1u == m_reentryPermit->scriptNestingLevel()) 830 if (1u == m_reentryPermit->scriptNestingLevel())
831 Microtask::performCheckpoint(V8PerIsolateData::mainThreadIsolate()); 831 Microtask::performCheckpoint(V8PerIsolateData::mainThreadIsolate());
832 832
833 // "6.4 Push a new element queue onto the custom element 833 // "6.4 Push a new element queue onto the custom element
834 // reactions stack." 834 // reactions stack."
835 CEReactionsScope reactions; 835 CEReactionsScope reactions;
836 836
837 // 7. 837 // 7.
838 QualifiedName elementQName(nullAtom, token->name(), HTMLNames::xhtmlName spaceURI); 838 QualifiedName elementQName(nullAtom, token->name(), HTMLNames::xhtmlName spaceURI);
839 element = definition->createElementSync(document, elementQName); 839 element = definition->createElementSync(document, elementQName, nullptr) ;
840 840
841 // "8. Append each attribute in the given token to element." 841 // "8. Append each attribute in the given token to element."
842 // We don't use setAttributes here because the custom element 842 // We don't use setAttributes here because the custom element
843 // constructor may have manipulated attributes. 843 // constructor may have manipulated attributes.
844 for (const auto& attribute : token->attributes()) 844 for (const auto& attribute : token->attributes())
845 element->setAttribute(attribute.name(), attribute.value()); 845 element->setAttribute(attribute.name(), attribute.value());
846 846
847 // "9. If will execute script is true, then ..." etc. The 847 // "9. If will execute script is true, then ..." etc. The
848 // CEReactionsScope and ScriptNestingLevelIncrementer 848 // CEReactionsScope and ScriptNestingLevelIncrementer
849 // destructors implement steps 9.1-4. 849 // destructors implement steps 9.1-4.
850 } else { 850 } else {
851 // FIXME: This can't use 851 // FIXME: This can't use
852 // HTMLConstructionSite::createElement because we have to 852 // HTMLConstructionSite::createElement because we have to
853 // pass the current form element. We should rework form 853 // pass the current form element. We should rework form
854 // association to occur after construction to allow better 854 // association to occur after construction to allow better
855 // code sharing here. 855 // code sharing here.
856 element = HTMLElementFactory::createHTMLElement(token->name(), document, form, getCreateElementFlags()); 856 element = HTMLElementFactory::createHTMLElement(token->name(), document, form, 0, getCreateElementFlags());
857 857
858 // "8. Append each attribute in the given token to element." 858 // "8. Append each attribute in the given token to element."
859 setAttributes(element, token, m_parserContentPolicy); 859 setAttributes(element, token, m_parserContentPolicy);
860 } 860 }
861 861
862 // TODO(dominicc): Implement steps 10-12 when customized built-in 862 // TODO(dominicc): Implement steps 10-12 when customized built-in
863 // elements are implemented. 863 // elements are implemented.
864 864
865 return element; 865 return element;
866 } 866 }
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 queueTask(task); 979 queueTask(task);
980 } 980 }
981 981
982 DEFINE_TRACE(HTMLConstructionSite::PendingText) 982 DEFINE_TRACE(HTMLConstructionSite::PendingText)
983 { 983 {
984 visitor->trace(parent); 984 visitor->trace(parent);
985 visitor->trace(nextChild); 985 visitor->trace(nextChild);
986 } 986 }
987 987
988 } // namespace blink 988 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditingUtilities.cpp ('k') | tools/run-perf-test.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698