Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2010 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2010 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ | 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ |
| 4 * Copyright (C) 2010 Google Inc. All Rights Reserved. | 4 * Copyright (C) 2010 Google Inc. All Rights Reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 245 m_state = Initial; | 245 m_state = Initial; |
| 246 else | 246 else |
| 247 m_state = DoneParsingImportRules; | 247 m_state = DoneParsingImportRules; |
| 248 m_rule.clear(); | 248 m_rule.clear(); |
| 249 m_ruleValue.clear(); | 249 m_ruleValue.clear(); |
| 250 } | 250 } |
| 251 | 251 |
| 252 CSSPreloaderResourceClient::CSSPreloaderResourceClient( | 252 CSSPreloaderResourceClient::CSSPreloaderResourceClient( |
| 253 Resource* resource, | 253 Resource* resource, |
| 254 HTMLResourcePreloader* preloader) | 254 HTMLResourcePreloader* preloader) |
| 255 : m_policy(preloader->document()->settings()->cssExternalScannerPreload() | 255 : m_policy(preloader->document()->settings()->GetCSSExternalScannerPreload() |
|
Łukasz Anforowicz
2016/12/21 21:07:36
This is an interesting case for choosing between |
nasko
2017/01/04 18:18:51
The acronyms style for Chromium is to use Css, not
| |
| 256 ? ScanAndPreload | 256 ? ScanAndPreload |
| 257 : ScanOnly), | 257 : ScanOnly), |
| 258 m_preloader(preloader), | 258 m_preloader(preloader), |
| 259 m_resource(toCSSStyleSheetResource(resource)) { | 259 m_resource(toCSSStyleSheetResource(resource)) { |
| 260 m_resource->addClient(this, Resource::DontMarkAsReferenced); | 260 m_resource->addClient(this, Resource::DontMarkAsReferenced); |
| 261 } | 261 } |
| 262 | 262 |
| 263 CSSPreloaderResourceClient::~CSSPreloaderResourceClient() {} | 263 CSSPreloaderResourceClient::~CSSPreloaderResourceClient() {} |
| 264 | 264 |
| 265 void CSSPreloaderResourceClient::setCSSStyleSheet( | 265 void CSSPreloaderResourceClient::setCSSStyleSheet( |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 343 m_resource.clear(); | 343 m_resource.clear(); |
| 344 } | 344 } |
| 345 | 345 |
| 346 DEFINE_TRACE(CSSPreloaderResourceClient) { | 346 DEFINE_TRACE(CSSPreloaderResourceClient) { |
| 347 visitor->trace(m_preloader); | 347 visitor->trace(m_preloader); |
| 348 visitor->trace(m_resource); | 348 visitor->trace(m_resource); |
| 349 StyleSheetResourceClient::trace(visitor); | 349 StyleSheetResourceClient::trace(visitor); |
| 350 } | 350 } |
| 351 | 351 |
| 352 } // namespace blink | 352 } // namespace blink |
| OLD | NEW |