| 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 | 474 |
| 475 void StyleSheetContents::registerClient(CSSStyleSheet* sheet) | 475 void StyleSheetContents::registerClient(CSSStyleSheet* sheet) |
| 476 { | 476 { |
| 477 ASSERT(!m_clients.contains(sheet)); | 477 ASSERT(!m_clients.contains(sheet)); |
| 478 m_clients.append(sheet); | 478 m_clients.append(sheet); |
| 479 } | 479 } |
| 480 | 480 |
| 481 void StyleSheetContents::unregisterClient(CSSStyleSheet* sheet) | 481 void StyleSheetContents::unregisterClient(CSSStyleSheet* sheet) |
| 482 { | 482 { |
| 483 size_t position = m_clients.find(sheet); | 483 size_t position = m_clients.find(sheet); |
| 484 ASSERT(position != notFound); | 484 ASSERT(position != kNotFound); |
| 485 m_clients.remove(position); | 485 m_clients.remove(position); |
| 486 } | 486 } |
| 487 | 487 |
| 488 void StyleSheetContents::addedToMemoryCache() | 488 void StyleSheetContents::addedToMemoryCache() |
| 489 { | 489 { |
| 490 ASSERT(!m_isInMemoryCache); | 490 ASSERT(!m_isInMemoryCache); |
| 491 ASSERT(isCacheable()); | 491 ASSERT(isCacheable()); |
| 492 m_isInMemoryCache = true; | 492 m_isInMemoryCache = true; |
| 493 } | 493 } |
| 494 | 494 |
| 495 void StyleSheetContents::removedFromMemoryCache() | 495 void StyleSheetContents::removedFromMemoryCache() |
| 496 { | 496 { |
| 497 ASSERT(m_isInMemoryCache); | 497 ASSERT(m_isInMemoryCache); |
| 498 ASSERT(isCacheable()); | 498 ASSERT(isCacheable()); |
| 499 m_isInMemoryCache = false; | 499 m_isInMemoryCache = false; |
| 500 } | 500 } |
| 501 | 501 |
| 502 void StyleSheetContents::shrinkToFit() | 502 void StyleSheetContents::shrinkToFit() |
| 503 { | 503 { |
| 504 m_importRules.shrinkToFit(); | 504 m_importRules.shrinkToFit(); |
| 505 m_childRules.shrinkToFit(); | 505 m_childRules.shrinkToFit(); |
| 506 } | 506 } |
| 507 | 507 |
| 508 } | 508 } |
| OLD | NEW |