Unreviewed build fix after r220376.
[WebKit-https.git] / Source / WebCore / dom / Document.cpp
index b74e5efbc5e9c9c9f0eea119d80c1384f518030f..c893bcd1bfeceee162c253983d99192c71f18e04 100644 (file)
@@ -4475,7 +4475,11 @@ bool Document::domainIsRegisterable(const String& newDomain) const
     if (potentialPublicSuffix.startsWith('.'))
         potentialPublicSuffix.remove(0, 1);
 
+#if ENABLE(PUBLIC_SUFFIX_LIST)
     return !isPublicSuffix(potentialPublicSuffix);
+#else
+    return true;
+#endif
 }
 
 ExceptionOr<void> Document::setDomain(const String& newDomain)