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

Unified Diff: src/plugin/AdblockPlusDomTraverser.cpp

Issue 5316782940225536: Issue 1557 - Update to the recent libadblockplus to reduce additional updates in the logic later. (Closed)
Patch Set: remove debugging code Created Nov. 24, 2014, 11:09 a.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
Index: src/plugin/AdblockPlusDomTraverser.cpp
===================================================================
--- a/src/plugin/AdblockPlusDomTraverser.cpp
+++ b/src/plugin/AdblockPlusDomTraverser.cpp
@@ -17,7 +17,8 @@
CPluginClient* client = CPluginClient::GetInstance();
// If src should be blocked, set style display:none on iframe
- bool isBlocked = client->ShouldBlock(to_wstring(url), CFilter::contentTypeSubdocument, m_domain);
+ bool isBlocked = client->ShouldBlock(to_wstring(url),
Eric 2014/12/30 16:56:08 ToWstring
+ AdblockPlus::FilterEngine::ContentType::CONTENT_TYPE_SUBDOCUMENT, m_domain);
if (isBlocked)
{
HideElement(pEl, "iframe", url, true, indent);
@@ -55,7 +56,8 @@
CPluginClient::UnescapeUrl(src);
// If src should be blocked, set style display:none on image
- cache->m_isHidden = client->ShouldBlock(to_wstring(src), CFilter::contentTypeImage, m_domain);
+ cache->m_isHidden = client->ShouldBlock(to_wstring(src),
Eric 2014/12/30 16:56:08 ToWstring
+ AdblockPlus::FilterEngine::ContentType::CONTENT_TYPE_IMAGE, m_domain);
if (cache->m_isHidden)
{
HideElement(pEl, "image", src, true, indent);

Powered by Google App Engine
This is Rietveld