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

Side by Side Diff: third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: temp Created 3 years, 11 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) 2000 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2005, 2006, 2008, 2014 Apple Inc. All rights reserved. 3 * Copyright (C) 2005, 2006, 2008, 2014 Apple Inc. All rights reserved.
4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
5 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 5 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * Copyright (C) 2008 Holger Hans Peter Freyther 7 * Copyright (C) 2008 Holger Hans Peter Freyther
8 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * 10 *
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 if (!updateLeafTextNode()) 1071 if (!updateLeafTextNode())
1072 return; 1072 return;
1073 1073
1074 ContainerNode* n = m_currentNode; 1074 ContainerNode* n = m_currentNode;
1075 if (m_currentNode->isElementNode()) 1075 if (m_currentNode->isElementNode())
1076 toElement(n)->finishParsingChildren(); 1076 toElement(n)->finishParsingChildren();
1077 1077
1078 if (!scriptingContentIsAllowed(getParserContentPolicy()) && 1078 if (!scriptingContentIsAllowed(getParserContentPolicy()) &&
1079 n->isElementNode() && toScriptLoaderIfPossible(toElement(n))) { 1079 n->isElementNode() && toScriptLoaderIfPossible(toElement(n))) {
1080 popCurrentNode(); 1080 popCurrentNode();
1081 n->remove(IGNORE_EXCEPTION); 1081 n->remove(IGNORE_EXCEPTION_FOR_TESTING);
1082 return; 1082 return;
1083 } 1083 }
1084 1084
1085 if (!n->isElementNode() || !m_hasView) { 1085 if (!n->isElementNode() || !m_hasView) {
1086 popCurrentNode(); 1086 popCurrentNode();
1087 return; 1087 return;
1088 } 1088 }
1089 1089
1090 Element* element = toElement(n); 1090 Element* element = toElement(n);
1091 1091
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1709 RefPtr<XMLParserContext> parser = 1709 RefPtr<XMLParserContext> parser =
1710 XMLParserContext::createStringParser(&sax, &state); 1710 XMLParserContext::createStringParser(&sax, &state);
1711 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />"; 1711 String parseString = "<?xml version=\"1.0\"?><attrs " + string + " />";
1712 parseChunk(parser->context(), parseString); 1712 parseChunk(parser->context(), parseString);
1713 finishParsing(parser->context()); 1713 finishParsing(parser->context());
1714 attrsOK = state.gotAttributes; 1714 attrsOK = state.gotAttributes;
1715 return state.attributes; 1715 return state.attributes;
1716 } 1716 }
1717 1717
1718 } // namespace blink 1718 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698