bool UserContentURLPattern::matches(const URL& test) const { if (m_invalid) return false; if (!equalIgnoringASCIICase(test.protocol(), m_scheme)) return false; if (!equalLettersIgnoringASCIICase(m_scheme, "file") && !matchesHost(test)) return false; return matchesPath(test); }
bool UserContentURLPattern::matches(const KURL& test) const { if (m_invalid) return false; if (test.protocol() != m_scheme) return false; if (!matchesHost(test)) return false; return matchesPath(test); }