OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 if (result.isNewEntry) | 309 if (result.isNewEntry) |
310 return; | 310 return; |
311 result.storedValue->value = uri; | 311 result.storedValue->value = uri; |
312 } | 312 } |
313 | 313 |
314 const AtomicString& StyleSheetContents::namespaceURIFromPrefix(const AtomicStrin
g& prefix) | 314 const AtomicString& StyleSheetContents::namespaceURIFromPrefix(const AtomicStrin
g& prefix) |
315 { | 315 { |
316 return m_namespaces.get(prefix); | 316 return m_namespaces.get(prefix); |
317 } | 317 } |
318 | 318 |
319 void StyleSheetContents::parseAuthorStyleSheet(const CSSStyleSheetResource* cach
edStyleSheet, const SecurityOrigin* securityOrigin) | 319 void StyleSheetContents::parseAuthorStyleSheet(CSSStyleSheetResource* cachedStyl
eSheet, const SecurityOrigin* securityOrigin) |
320 { | 320 { |
321 TRACE_EVENT1("blink,devtools.timeline", "ParseAuthorStyleSheet", "data", Ins
pectorParseAuthorStyleSheetEvent::data(cachedStyleSheet)); | 321 TRACE_EVENT1("blink,devtools.timeline", "ParseAuthorStyleSheet", "data", Ins
pectorParseAuthorStyleSheetEvent::data(cachedStyleSheet)); |
322 | 322 |
323 bool isSameOriginRequest = securityOrigin && securityOrigin->canRequest(base
URL()); | 323 bool isSameOriginRequest = securityOrigin && securityOrigin->canRequest(base
URL()); |
324 | 324 |
325 // When the response was fetched via the Service Worker, the original URL ma
y not be same as the base URL. | 325 // When the response was fetched via the Service Worker, the original URL ma
y not be same as the base URL. |
326 // TODO(horo): When we will use the original URL as the base URL, we can rem
ove this check. crbug.com/553535 | 326 // TODO(horo): When we will use the original URL as the base URL, we can rem
ove this check. crbug.com/553535 |
327 if (cachedStyleSheet->response().wasFetchedViaServiceWorker()) { | 327 if (cachedStyleSheet->response().wasFetchedViaServiceWorker()) { |
328 const KURL originalURL(cachedStyleSheet->response().originalURLViaServic
eWorker()); | 328 const KURL originalURL(cachedStyleSheet->response().originalURLViaServic
eWorker()); |
329 // |originalURL| is empty when the response is created in the SW. | 329 // |originalURL| is empty when the response is created in the SW. |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 visitor->trace(m_importRules); | 664 visitor->trace(m_importRules); |
665 visitor->trace(m_namespaceRules); | 665 visitor->trace(m_namespaceRules); |
666 visitor->trace(m_childRules); | 666 visitor->trace(m_childRules); |
667 visitor->trace(m_loadingClients); | 667 visitor->trace(m_loadingClients); |
668 visitor->trace(m_completedClients); | 668 visitor->trace(m_completedClients); |
669 visitor->trace(m_ruleSet); | 669 visitor->trace(m_ruleSet); |
670 visitor->trace(m_referencedFromResource); | 670 visitor->trace(m_referencedFromResource); |
671 } | 671 } |
672 | 672 |
673 } // namespace blink | 673 } // namespace blink |
OLD | NEW |