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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 { | 451 { |
452 ASSERT(m_pendingSheetType < Blocking); | 452 ASSERT(m_pendingSheetType < Blocking); |
453 addPendingSheet(Blocking); | 453 addPendingSheet(Blocking); |
454 } | 454 } |
455 | 455 |
456 void LinkStyle::clearSheet() | 456 void LinkStyle::clearSheet() |
457 { | 457 { |
458 ASSERT(m_sheet); | 458 ASSERT(m_sheet); |
459 ASSERT(m_sheet->ownerNode() == m_owner); | 459 ASSERT(m_sheet->ownerNode() == m_owner); |
460 m_sheet->clearOwnerNode(); | 460 m_sheet->clearOwnerNode(); |
461 m_sheet = 0; | 461 m_sheet = nullptr; |
462 } | 462 } |
463 | 463 |
464 bool LinkStyle::styleSheetIsLoading() const | 464 bool LinkStyle::styleSheetIsLoading() const |
465 { | 465 { |
466 if (m_loading) | 466 if (m_loading) |
467 return true; | 467 return true; |
468 if (!m_sheet) | 468 if (!m_sheet) |
469 return false; | 469 return false; |
470 return m_sheet->contents()->isLoading(); | 470 return m_sheet->contents()->isLoading(); |
471 } | 471 } |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 void LinkStyle::ownerRemoved() | 626 void LinkStyle::ownerRemoved() |
627 { | 627 { |
628 if (m_sheet) | 628 if (m_sheet) |
629 clearSheet(); | 629 clearSheet(); |
630 | 630 |
631 if (styleSheetIsLoading()) | 631 if (styleSheetIsLoading()) |
632 removePendingSheet(RemovePendingSheetNotifyLater); | 632 removePendingSheet(RemovePendingSheetNotifyLater); |
633 } | 633 } |
634 | 634 |
635 } // namespace WebCore | 635 } // namespace WebCore |
OLD | NEW |