| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 Eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 template <class T> | 121 template <class T> |
| 122 bool CPluginDomTraverserBase<T>::IsEnabled() | 122 bool CPluginDomTraverserBase<T>::IsEnabled() |
| 123 { | 123 { |
| 124 return CPluginSettings::GetInstance()->IsPluginEnabled(); | 124 return CPluginSettings::GetInstance()->IsPluginEnabled(); |
| 125 } | 125 } |
| 126 | 126 |
| 127 | 127 |
| 128 template <class T> | 128 template <class T> |
| 129 void CPluginDomTraverserBase<T>::TraverseDocument(IWebBrowser2* pBrowser, bool i
sMainDoc, const std::wstring& indent) | 129 void CPluginDomTraverserBase<T>::TraverseDocument(IWebBrowser2* pBrowser, bool i
sMainDoc, const std::wstring& indent) |
| 130 { | 130 { |
| 131 DWORD res = WaitForSingleObject(m_tab->m_filter->hideFiltersLoadedEvent, ENGIN
E_STARTUP_TIMEOUT); | 131 DWORD res = WaitForSingleObject(m_tab->m_filter.hideFiltersLoadedEvent, ENGINE
_STARTUP_TIMEOUT); |
| 132 if (!IsEnabled()) return; | 132 if (!IsEnabled()) return; |
| 133 | 133 |
| 134 VARIANT_BOOL isBusy; | 134 VARIANT_BOOL isBusy; |
| 135 if (SUCCEEDED(pBrowser->get_Busy(&isBusy))) | 135 if (SUCCEEDED(pBrowser->get_Busy(&isBusy))) |
| 136 { | 136 { |
| 137 if (isBusy != VARIANT_FALSE) | 137 if (isBusy != VARIANT_FALSE) |
| 138 { | 138 { |
| 139 return; | 139 return; |
| 140 } | 140 } |
| 141 } | 141 } |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 { | 454 { |
| 455 m_cacheIndexLast = 0; | 455 m_cacheIndexLast = 0; |
| 456 m_cacheDocumentHasFrames.clear(); | 456 m_cacheDocumentHasFrames.clear(); |
| 457 m_cacheDocumentHasIframes.clear(); | 457 m_cacheDocumentHasIframes.clear(); |
| 458 } | 458 } |
| 459 m_criticalSection.Unlock(); | 459 m_criticalSection.Unlock(); |
| 460 } | 460 } |
| 461 | 461 |
| 462 | 462 |
| 463 #endif // _PLUGIN_DOM_TRAVERSER_BASE_H_ | 463 #endif // _PLUGIN_DOM_TRAVERSER_BASE_H_ |
| OLD | NEW |