| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 #include "Text.h" | 52 #include "Text.h" |
| 53 #include <wtf/UnusedParam.h> | 53 #include <wtf/UnusedParam.h> |
| 54 | 54 |
| 55 namespace WebCore { | 55 namespace WebCore { |
| 56 | 56 |
| 57 using namespace HTMLNames; | 57 using namespace HTMLNames; |
| 58 | 58 |
| 59 static inline void setAttributes(Element* element, AtomicHTMLToken* token, Parse
rContentPolicy parserContentPolicy) | 59 static inline void setAttributes(Element* element, AtomicHTMLToken* token, Parse
rContentPolicy parserContentPolicy) |
| 60 { | 60 { |
| 61 if (!scriptingContentIsAllowed(parserContentPolicy)) | 61 if (!scriptingContentIsAllowed(parserContentPolicy)) |
| 62 element->stripJavaScriptAttributes(token->attributes()); | 62 element->stripScriptingAttributes(token->attributes()); |
| 63 element->parserSetAttributes(token->attributes()); | 63 element->parserSetAttributes(token->attributes()); |
| 64 } | 64 } |
| 65 | 65 |
| 66 static bool hasImpliedEndTag(const HTMLStackItem* item) | 66 static bool hasImpliedEndTag(const HTMLStackItem* item) |
| 67 { | 67 { |
| 68 return item->hasTagName(ddTag) | 68 return item->hasTagName(ddTag) |
| 69 || item->hasTagName(dtTag) | 69 || item->hasTagName(dtTag) |
| 70 || item->hasTagName(liTag) | 70 || item->hasTagName(liTag) |
| 71 || item->hasTagName(optionTag) | 71 || item->hasTagName(optionTag) |
| 72 || item->hasTagName(optgroupTag) | 72 || item->hasTagName(optgroupTag) |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 { | 647 { |
| 648 HTMLConstructionSiteTask task; | 648 HTMLConstructionSiteTask task; |
| 649 findFosterSite(task); | 649 findFosterSite(task); |
| 650 task.child = node; | 650 task.child = node; |
| 651 ASSERT(task.parent); | 651 ASSERT(task.parent); |
| 652 | 652 |
| 653 m_attachmentQueue.append(task); | 653 m_attachmentQueue.append(task); |
| 654 } | 654 } |
| 655 | 655 |
| 656 } | 656 } |
| OLD | NEW |