| 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 | 530 |
| 531 StyleSheetContents* StyleSheetContents::parentStyleSheet() const | 531 StyleSheetContents* StyleSheetContents::parentStyleSheet() const |
| 532 { | 532 { |
| 533 return m_ownerRule ? m_ownerRule->parentStyleSheet() : 0; | 533 return m_ownerRule ? m_ownerRule->parentStyleSheet() : 0; |
| 534 } | 534 } |
| 535 | 535 |
| 536 void StyleSheetContents::registerClient(CSSStyleSheet* sheet) | 536 void StyleSheetContents::registerClient(CSSStyleSheet* sheet) |
| 537 { | 537 { |
| 538 ASSERT(!m_loadingClients.contains(sheet) && !m_completedClients.contains(she
et)); | 538 ASSERT(!m_loadingClients.contains(sheet) && !m_completedClients.contains(she
et)); |
| 539 | 539 |
| 540 // InspectorCSSAgent::buildObjectForRule and document.implementation.createC
SSStyleSheet | 540 // InspectorCSSAgent::buildObjectForRule creates CSSStyleSheet without any o
wner node. |
| 541 // creates CSSStyleSheet without any owner node. | |
| 542 if (!sheet->ownerDocument()) | 541 if (!sheet->ownerDocument()) |
| 543 return; | 542 return; |
| 544 | 543 |
| 545 if (Document* document = clientSingleOwnerDocument()) { | 544 if (Document* document = clientSingleOwnerDocument()) { |
| 546 if (sheet->ownerDocument() != document) | 545 if (sheet->ownerDocument() != document) |
| 547 m_hasSingleOwnerDocument = false; | 546 m_hasSingleOwnerDocument = false; |
| 548 } | 547 } |
| 549 m_loadingClients.add(sheet); | 548 m_loadingClients.add(sheet); |
| 550 } | 549 } |
| 551 | 550 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 { | 687 { |
| 689 visitor->trace(m_ownerRule); | 688 visitor->trace(m_ownerRule); |
| 690 visitor->trace(m_importRules); | 689 visitor->trace(m_importRules); |
| 691 visitor->trace(m_childRules); | 690 visitor->trace(m_childRules); |
| 692 visitor->trace(m_loadingClients); | 691 visitor->trace(m_loadingClients); |
| 693 visitor->trace(m_completedClients); | 692 visitor->trace(m_completedClients); |
| 694 visitor->trace(m_ruleSet); | 693 visitor->trace(m_ruleSet); |
| 695 } | 694 } |
| 696 | 695 |
| 697 } | 696 } |
| OLD | NEW |