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

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

Issue 14297020: Merge 147281 "Cross-Origin copy&paste / drag&drop allowing XSS v..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1453/
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « Source/WebCore/html/HTMLFrameElementBase.cpp ('k') | Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698