OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |