Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/AdblockPlusDomTraverser.cpp

Issue 4895405913407488: Issue #1234 - remove CString from declarations representing domains. (Closed)
Patch Set: Created Aug. 7, 2014, 7:46 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/plugin/PluginClientBase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/AdblockPlusDomTraverser.cpp
===================================================================
--- a/src/plugin/AdblockPlusDomTraverser.cpp
+++ b/src/plugin/AdblockPlusDomTraverser.cpp
@@ -17,7 +17,7 @@
CPluginClient* client = CPluginClient::GetInstance();
// If src should be blocked, set style display:none on iframe
- bool isBlocked = client->ShouldBlock(to_wstring(url), CFilter::contentTypeSubdocument, to_wstring(m_domain));
+ bool isBlocked = client->ShouldBlock(to_wstring(url), CFilter::contentTypeSubdocument, m_domain);
if (isBlocked)
{
HideElement(pEl, "iframe", url, true, indent);
@@ -37,7 +37,7 @@
// Check if element is hidden
CPluginClient* client = CPluginClient::GetInstance();
- cache->m_isHidden = client->IsElementHidden(to_wstring(tag), pEl, to_wstring(m_domain), to_wstring(indent), m_tab->m_filter.get());
+ cache->m_isHidden = client->IsElementHidden(to_wstring(tag), pEl, m_domain, to_wstring(indent), m_tab->m_filter.get());
if (cache->m_isHidden)
{
HideElement(pEl, tag, "", false, indent);
@@ -55,7 +55,7 @@
CPluginClient::UnescapeUrl(src);
// If src should be blocked, set style display:none on image
- cache->m_isHidden = client->ShouldBlock(to_wstring(src), CFilter::contentTypeImage, to_wstring(m_domain));
+ cache->m_isHidden = client->ShouldBlock(to_wstring(src), CFilter::contentTypeImage, m_domain);
if (cache->m_isHidden)
{
HideElement(pEl, "image", src, true, indent);
@@ -111,7 +111,7 @@
{
CPluginClient* client = CPluginClient::GetInstance();
- return client && CPluginSettings::GetInstance()->IsPluginEnabled() && !client->IsWhitelistedUrl(std::wstring(m_domain));
+ return client && CPluginSettings::GetInstance()->IsPluginEnabled() && !client->IsWhitelistedUrl(m_domain);
}
« no previous file with comments | « no previous file | src/plugin/PluginClientBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld