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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 if (styleResolverUpdateType == Reset) { | 472 if (styleResolverUpdateType == Reset) { |
473 styleResolver->ruleSets().resetAuthorStyle(); | 473 styleResolver->ruleSets().resetAuthorStyle(); |
474 styleResolver->appendAuthorStyleSheets(0, activeCSSStyleSheets); | 474 styleResolver->appendAuthorStyleSheets(0, activeCSSStyleSheets); |
475 } else { | 475 } else { |
476 ASSERT(styleResolverUpdateType == Additive); | 476 ASSERT(styleResolverUpdateType == Additive); |
477 styleResolver->appendAuthorStyleSheets(m_activeAuthorStyleSheets.siz
e(), activeCSSStyleSheets); | 477 styleResolver->appendAuthorStyleSheets(m_activeAuthorStyleSheets.siz
e(), activeCSSStyleSheets); |
478 } | 478 } |
479 resetCSSFeatureFlags(); | 479 resetCSSFeatureFlags(); |
480 } | 480 } |
481 m_activeAuthorStyleSheets.swap(activeCSSStyleSheets); | 481 m_activeAuthorStyleSheets.swap(activeCSSStyleSheets); |
| 482 InspectorInstrumentation::activeStyleSheetsUpdated(m_document, activeStyleSh
eets); |
482 m_styleSheetsForStyleSheetList.swap(activeStyleSheets); | 483 m_styleSheetsForStyleSheetList.swap(activeStyleSheets); |
483 | 484 |
484 m_usesRemUnits = styleSheetsUseRemUnits(m_activeAuthorStyleSheets); | 485 m_usesRemUnits = styleSheetsUseRemUnits(m_activeAuthorStyleSheets); |
485 m_needsUpdateActiveStylesheetsOnStyleRecalc = false; | 486 m_needsUpdateActiveStylesheetsOnStyleRecalc = false; |
486 | 487 |
487 m_document->notifySeamlessChildDocumentsOfStylesheetUpdate(); | 488 m_document->notifySeamlessChildDocumentsOfStylesheetUpdate(); |
488 | 489 |
489 return requiresFullStyleRecalc; | 490 return requiresFullStyleRecalc; |
490 } | 491 } |
491 | 492 |
492 void DocumentStyleSheetCollection::reportMemoryUsage(MemoryObjectInfo* memoryObj
ectInfo) const | 493 void DocumentStyleSheetCollection::reportMemoryUsage(MemoryObjectInfo* memoryObj
ectInfo) const |
493 { | 494 { |
494 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); | 495 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); |
495 info.addMember(m_pageUserSheet, "pageUserSheet"); | 496 info.addMember(m_pageUserSheet, "pageUserSheet"); |
496 info.addMember(m_injectedUserStyleSheets, "injectedUserStyleSheets"); | 497 info.addMember(m_injectedUserStyleSheets, "injectedUserStyleSheets"); |
497 info.addMember(m_injectedAuthorStyleSheets, "injectedAuthorStyleSheets"); | 498 info.addMember(m_injectedAuthorStyleSheets, "injectedAuthorStyleSheets"); |
498 info.addMember(m_userStyleSheets, "userStyleSheets"); | 499 info.addMember(m_userStyleSheets, "userStyleSheets"); |
499 info.addMember(m_authorStyleSheets, "authorStyleSheets"); | 500 info.addMember(m_authorStyleSheets, "authorStyleSheets"); |
500 info.addMember(m_activeAuthorStyleSheets, "activeAuthorStyleSheets"); | 501 info.addMember(m_activeAuthorStyleSheets, "activeAuthorStyleSheets"); |
501 info.addMember(m_styleSheetsForStyleSheetList, "styleSheetsForStyleSheetList
"); | 502 info.addMember(m_styleSheetsForStyleSheetList, "styleSheetsForStyleSheetList
"); |
502 info.addMember(m_styleSheetCandidateNodes, "styleSheetCandidateNodes"); | 503 info.addMember(m_styleSheetCandidateNodes, "styleSheetCandidateNodes"); |
503 info.addMember(m_preferredStylesheetSetName, "preferredStylesheetSetName"); | 504 info.addMember(m_preferredStylesheetSetName, "preferredStylesheetSetName"); |
504 info.addMember(m_selectedStylesheetSetName, "selectedStylesheetSetName"); | 505 info.addMember(m_selectedStylesheetSetName, "selectedStylesheetSetName"); |
505 info.addMember(m_document, "document"); | 506 info.addMember(m_document, "document"); |
506 } | 507 } |
507 | 508 |
508 } | 509 } |
OLD | NEW |