| Left: | ||
| Right: |
| LEFT | RIGHT |
|---|---|
| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 264 m_predecessor = filter.m_predecessor; | 264 m_predecessor = filter.m_predecessor; |
| 265 } | 265 } |
| 266 | 266 |
| 267 | 267 |
| 268 // ============================================================================ | 268 // ============================================================================ |
| 269 // CFilter | 269 // CFilter |
| 270 // ============================================================================ | 270 // ============================================================================ |
| 271 | 271 |
| 272 CFilter::CFilter(const CFilter& filter) | 272 CFilter::CFilter(const CFilter& filter) |
| 273 { | 273 { |
| 274 m_contentType = filter.m_contentType; | |
|
Eric
2015/02/02 06:58:27
Here it is in the copy constructor.
| |
| 275 m_filterType = filter.m_filterType; | 274 m_filterType = filter.m_filterType; |
| 276 | 275 |
| 277 m_isFirstParty = filter.m_isFirstParty; | 276 m_isFirstParty = filter.m_isFirstParty; |
| 278 m_isThirdParty = filter.m_isThirdParty; | 277 m_isThirdParty = filter.m_isThirdParty; |
| 279 | 278 |
| 280 m_isMatchCase = filter.m_isMatchCase; | 279 m_isMatchCase = filter.m_isMatchCase; |
| 281 m_isFromStart = filter.m_isFromStart; | 280 m_isFromStart = filter.m_isFromStart; |
| 282 m_isFromEnd = filter.m_isFromEnd; | 281 m_isFromEnd = filter.m_isFromEnd; |
| 283 | 282 |
| 284 m_filterText = filter.m_filterText; | 283 m_filterText = filter.m_filterText; |
| 285 | 284 |
| 286 m_hitCount = filter.m_hitCount; | 285 m_hitCount = filter.m_hitCount; |
| 287 } | 286 } |
| 288 | 287 |
| 289 | 288 |
| 290 CFilter::CFilter() : m_isMatchCase(false), m_isFirstParty(false), | 289 CFilter::CFilter() : m_isMatchCase(false), m_isFirstParty(false), |
| 291 m_isThirdParty(false), m_contentType(AdblockPlus::FilterEngine::ContentType::C ONTENT_TYPE_OTHER), | 290 m_isThirdParty(false), |
|
Eric
2015/02/02 06:58:27
Here it is in the default constructor.
| |
| 292 m_isFromStart(false), m_isFromEnd(false), m_hitCount(0) | 291 m_isFromStart(false), m_isFromEnd(false), m_hitCount(0) |
| 293 { | 292 { |
| 294 } | 293 } |
| 295 | 294 |
| 296 | 295 |
| 297 bool CFilterElementHide::IsMatchFilterElementHide(IHTMLElement* pEl) const | 296 bool CFilterElementHide::IsMatchFilterElementHide(IHTMLElement* pEl) const |
| 298 { | 297 { |
| 299 HRESULT hr; | 298 HRESULT hr; |
| 300 | 299 |
| 301 if (!m_tagId.IsEmpty()) | 300 if (!m_tagId.IsEmpty()) |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 734 CPluginDebug::DebugResultBlocking(ToCString(type), srcTrimmed, domain); | 733 CPluginDebug::DebugResultBlocking(ToCString(type), srcTrimmed, domain); |
| 735 } | 734 } |
| 736 else | 735 else |
| 737 { | 736 { |
| 738 CPluginDebug::DebugResultIgnoring(ToCString(type), srcTrimmed, domain); | 737 CPluginDebug::DebugResultIgnoring(ToCString(type), srcTrimmed, domain); |
| 739 } | 738 } |
| 740 } | 739 } |
| 741 #endif | 740 #endif |
| 742 return result; | 741 return result; |
| 743 } | 742 } |
| LEFT | RIGHT |