Index: src/plugin/AdblockPlusDomTraverser.cpp |
=================================================================== |
--- a/src/plugin/AdblockPlusDomTraverser.cpp |
+++ b/src/plugin/AdblockPlusDomTraverser.cpp |
@@ -1,20 +1,20 @@ |
-/* |
- * This file is part of Adblock Plus <https://adblockplus.org/>, |
- * Copyright (C) 2006-2015 Eyeo GmbH |
- * |
- * Adblock Plus is free software: you can redistribute it and/or modify |
- * it under the terms of the GNU General Public License version 3 as |
- * published by the Free Software Foundation. |
- * |
- * Adblock Plus is distributed in the hope that it will be useful, |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
- * GNU General Public License for more details. |
- * |
- * You should have received a copy of the GNU General Public License |
- * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
- */ |
- |
+/* |
+ * This file is part of Adblock Plus <https://adblockplus.org/>, |
+ * Copyright (C) 2006-2015 Eyeo GmbH |
+ * |
+ * Adblock Plus is free software: you can redistribute it and/or modify |
+ * it under the terms of the GNU General Public License version 3 as |
+ * published by the Free Software Foundation. |
+ * |
+ * Adblock Plus is distributed in the hope that it will be useful, |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
+ * GNU General Public License for more details. |
+ * |
+ * You should have received a copy of the GNU General Public License |
+ * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
+ */ |
+ |
#include "PluginStdAfx.h" |
#include "PluginClient.h" |
@@ -34,7 +34,8 @@ |
CPluginClient* client = CPluginClient::GetInstance(); |
// If src should be blocked, set style display:none on iframe |
- bool isBlocked = client->ShouldBlock(url, CFilter::contentTypeSubdocument, m_domain); |
+ bool isBlocked = client->ShouldBlock(url, |
+ AdblockPlus::FilterEngine::ContentType::CONTENT_TYPE_SUBDOCUMENT, m_domain); |
if (isBlocked) |
{ |
HideElement(pEl, "iframe", url, true, indent); |
@@ -72,7 +73,8 @@ |
UnescapeUrl(src); |
// If src should be blocked, set style display:none on image |
- cache->m_isHidden = client->ShouldBlock(src, CFilter::contentTypeImage, m_domain); |
+ cache->m_isHidden = client->ShouldBlock(src, |
+ AdblockPlus::FilterEngine::ContentType::CONTENT_TYPE_IMAGE, m_domain); |
if (cache->m_isHidden) |
{ |
HideElement(pEl, "image", src, true, indent); |