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

Side by Side Diff: Source/WebCore/html/parser/HTMLConstructionSite.h

Issue 10736069: Merge 118589 - Fix for self-closing <use> tags (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 5 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 private: 148 private:
149 HTMLConstructionSite& m_tree; 149 HTMLConstructionSite& m_tree;
150 bool m_wasRedirectingBefore; 150 bool m_wasRedirectingBefore;
151 }; 151 };
152 152
153 private: 153 private:
154 // In the common case, this queue will have only one task because most 154 // In the common case, this queue will have only one task because most
155 // tokens produce only one DOM mutation. 155 // tokens produce only one DOM mutation.
156 typedef Vector<HTMLConstructionSiteTask, 1> AttachmentQueue; 156 typedef Vector<HTMLConstructionSiteTask, 1> AttachmentQueue;
157 157
158 void attachLater(ContainerNode* parent, PassRefPtr<Node> child); 158 void attachLater(ContainerNode* parent, PassRefPtr<Node> child, bool selfClo sing = false);
159 159
160 void findFosterSite(HTMLConstructionSiteTask&); 160 void findFosterSite(HTMLConstructionSiteTask&);
161 161
162 PassRefPtr<Element> createHTMLElementFromSavedElement(Element*); 162 PassRefPtr<Element> createHTMLElementFromSavedElement(Element*);
163 PassRefPtr<Element> createElement(AtomicHTMLToken&, const AtomicString& name spaceURI); 163 PassRefPtr<Element> createElement(AtomicHTMLToken&, const AtomicString& name spaceURI);
164 164
165 void mergeAttributesFromTokenIntoElement(AtomicHTMLToken&, Element*); 165 void mergeAttributesFromTokenIntoElement(AtomicHTMLToken&, Element*);
166 void dispatchDocumentElementAvailableIfNeeded(); 166 void dispatchDocumentElementAvailableIfNeeded();
167 167
168 Document* m_document; 168 Document* m_document;
(...skipping 18 matching lines...) Expand all
187 // "whenever a node would be inserted into the current node, it must instead 187 // "whenever a node would be inserted into the current node, it must instead
188 // be foster parented." This flag tracks whether we're in that state. 188 // be foster parented." This flag tracks whether we're in that state.
189 bool m_redirectAttachToFosterParent; 189 bool m_redirectAttachToFosterParent;
190 190
191 unsigned m_maximumDOMTreeDepth; 191 unsigned m_maximumDOMTreeDepth;
192 }; 192 };
193 193
194 } // namespace WebCore 194 } // namespace WebCore
195 195
196 #endif 196 #endif
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/svg-self-closing-use-expected.html ('k') | Source/WebCore/html/parser/HTMLConstructionSite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698