OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) | 6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) |
7 * Copyright (C) 2011 Google Inc. All rights reserved. | 7 * Copyright (C) 2011 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 if (m_sheet) | 426 if (m_sheet) |
427 clearSheet(); | 427 clearSheet(); |
428 m_sheet = CSSStyleSheet::create(styleSheet, m_owner); | 428 m_sheet = CSSStyleSheet::create(styleSheet, m_owner); |
429 m_sheet->setMediaQueries(MediaQuerySet::create(m_owner->media())); | 429 m_sheet->setMediaQueries(MediaQuerySet::create(m_owner->media())); |
430 m_sheet->setTitle(m_owner->title()); | 430 m_sheet->setTitle(m_owner->title()); |
431 | 431 |
432 styleSheet->parseAuthorStyleSheet(cachedStyleSheet, m_owner->document().secu
rityOrigin()); | 432 styleSheet->parseAuthorStyleSheet(cachedStyleSheet, m_owner->document().secu
rityOrigin()); |
433 | 433 |
434 m_loading = false; | 434 m_loading = false; |
435 styleSheet->notifyLoadedSheet(cachedStyleSheet); | 435 styleSheet->notifyLoadedSheet(cachedStyleSheet); |
436 styleSheet->checkLoaded(); | 436 styleSheet->checkLoadedFor(m_owner); |
437 | 437 |
438 if (styleSheet->isCacheable()) | 438 if (styleSheet->isCacheable()) |
439 const_cast<CSSStyleSheetResource*>(cachedStyleSheet)->saveParsedStyleShe
et(styleSheet); | 439 const_cast<CSSStyleSheetResource*>(cachedStyleSheet)->saveParsedStyleShe
et(styleSheet); |
440 } | 440 } |
441 | 441 |
442 bool LinkStyle::sheetLoaded() | 442 bool LinkStyle::sheetLoaded() |
443 { | 443 { |
444 if (!styleSheetIsLoading()) { | 444 if (!styleSheetIsLoading()) { |
445 removePendingSheet(); | 445 removePendingSheet(); |
446 return true; | 446 return true; |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 void LinkStyle::ownerRemoved() | 632 void LinkStyle::ownerRemoved() |
633 { | 633 { |
634 if (m_sheet) | 634 if (m_sheet) |
635 clearSheet(); | 635 clearSheet(); |
636 | 636 |
637 if (styleSheetIsLoading()) | 637 if (styleSheetIsLoading()) |
638 removePendingSheet(RemovePendingSheetNotifyLater); | 638 removePendingSheet(RemovePendingSheetNotifyLater); |
639 } | 639 } |
640 | 640 |
641 } // namespace WebCore | 641 } // namespace WebCore |
OLD | NEW |