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

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

Issue 10377014: Merge 115763 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 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
« no previous file with comments | « Source/WebCore/html/parser/HTMLElementStack.cpp ('k') | no next file » | 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 2186 matching lines...) Expand 10 before | Expand all | Expand 10 after
2197 AtomicHTMLToken endSelect(HTMLTokenTypes::EndTag, selectTag.loca lName()); 2197 AtomicHTMLToken endSelect(HTMLTokenTypes::EndTag, selectTag.loca lName());
2198 processEndTag(endSelect); 2198 processEndTag(endSelect);
2199 processEndTag(token); 2199 processEndTag(token);
2200 } 2200 }
2201 return; 2201 return;
2202 } 2202 }
2203 // Fall through. 2203 // Fall through.
2204 case InSelectMode: 2204 case InSelectMode:
2205 ASSERT(insertionMode() == InSelectMode || insertionMode() == InSelectInT ableMode); 2205 ASSERT(insertionMode() == InSelectMode || insertionMode() == InSelectInT ableMode);
2206 if (token.name() == optgroupTag) { 2206 if (token.name() == optgroupTag) {
2207 if (m_tree.currentNode()->hasTagName(optionTag) && m_tree.oneBelowTo p()->hasTagName(optgroupTag)) 2207 if (m_tree.currentNode()->hasTagName(optionTag) && m_tree.oneBelowTo p() && m_tree.oneBelowTop()->hasTagName(optgroupTag))
2208 processFakeEndTag(optionTag); 2208 processFakeEndTag(optionTag);
2209 if (m_tree.currentNode()->hasTagName(optgroupTag)) { 2209 if (m_tree.currentNode()->hasTagName(optgroupTag)) {
2210 m_tree.openElements()->pop(); 2210 m_tree.openElements()->pop();
2211 return; 2211 return;
2212 } 2212 }
2213 parseError(token); 2213 parseError(token);
2214 return; 2214 return;
2215 } 2215 }
2216 if (token.name() == optionTag) { 2216 if (token.name() == optionTag) {
2217 if (m_tree.currentNode()->hasTagName(optionTag)) { 2217 if (m_tree.currentNode()->hasTagName(optionTag)) {
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
2830 } 2830 }
2831 2831
2832 bool HTMLTreeBuilder::pluginsEnabled(Frame* frame) 2832 bool HTMLTreeBuilder::pluginsEnabled(Frame* frame)
2833 { 2833 {
2834 if (!frame) 2834 if (!frame)
2835 return false; 2835 return false;
2836 return frame->loader()->subframeLoader()->allowPlugins(NotAboutToInstantiate Plugin); 2836 return frame->loader()->subframeLoader()->allowPlugins(NotAboutToInstantiate Plugin);
2837 } 2837 }
2838 2838
2839 } 2839 }
OLDNEW
« no previous file with comments | « Source/WebCore/html/parser/HTMLElementStack.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698