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

Unified Diff: third_party/WebKit/Source/core/dom/DOMURLUtils.cpp

Issue 1860623002: Add support for URL.searchParams getter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMURLUtils.h ('k') | third_party/WebKit/Source/core/dom/URL.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/DOMURLUtils.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMURLUtils.cpp b/third_party/WebKit/Source/core/dom/DOMURLUtils.cpp
index 7b3d670d252cd1a4f2b85848c23023b0a37f4785..5c3e759afe179202e437d6d4e8c6ebf430323711 100644
--- a/third_party/WebKit/Source/core/dom/DOMURLUtils.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMURLUtils.cpp
@@ -26,10 +26,15 @@
#include "core/dom/DOMURLUtils.h"
+#include "bindings/core/v8/ExceptionState.h"
#include "platform/weborigin/KnownPorts.h"
namespace blink {
+DOMURLUtils::~DOMURLUtils()
+{
+}
+
void DOMURLUtils::setHref(const String& value)
{
setInput(value);
@@ -117,6 +122,12 @@ void DOMURLUtils::setPathname(const String& value)
void DOMURLUtils::setSearch(const String& value)
{
+ setSearchInternal(value);
+}
+
+void DOMURLUtils::setSearchInternal(const String& value)
+{
+ ASSERT(!m_isInUpdate);
KURL kurl = url();
if (!kurl.isValid())
return;
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMURLUtils.h ('k') | third_party/WebKit/Source/core/dom/URL.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698