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

Unified Diff: Source/core/xml/XSLTProcessor.cpp

Issue 795053002: [binding] Migrate XSLTProcessor.idl away from using custom V8 binding. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/xml/XSLTProcessor.cpp
diff --git a/Source/core/xml/XSLTProcessor.cpp b/Source/core/xml/XSLTProcessor.cpp
index d346ec6ab90bec90f8128bcc08d732a8d80258a5..559a7bb0383551608b0d5c2d56e985ee07d424bb 100644
--- a/Source/core/xml/XSLTProcessor.cpp
+++ b/Source/core/xml/XSLTProcessor.cpp
@@ -139,6 +139,8 @@ void XSLTProcessor::setParameter(const String& /*namespaceURI*/, const String& l
{
// FIXME: namespace support?
// should make a QualifiedName here but we'd have to expose the impl
+ if (localName.isNull() || value.isNull())
+ return;
m_parameters.set(localName, value);
}
@@ -146,12 +148,16 @@ String XSLTProcessor::getParameter(const String& /*namespaceURI*/, const String&
{
// FIXME: namespace support?
// should make a QualifiedName here but we'd have to expose the impl
+ if (localName.isNull())
+ return String();
return m_parameters.get(localName);
}
void XSLTProcessor::removeParameter(const String& /*namespaceURI*/, const String& localName)
{
// FIXME: namespace support?
+ if (localName.isNull())
+ return;
m_parameters.remove(localName);
}

Powered by Google App Engine
This is Rietveld 408576698