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 30 matching lines...) Expand all Loading... |
41 #include "ProcessingInstruction.h" | 41 #include "ProcessingInstruction.h" |
42 #include "SVGNames.h" | 42 #include "SVGNames.h" |
43 #include "SVGStyleElement.h" | 43 #include "SVGStyleElement.h" |
44 #include "SelectorChecker.h" | 44 #include "SelectorChecker.h" |
45 #include "Settings.h" | 45 #include "Settings.h" |
46 #include "StyleInvalidationAnalysis.h" | 46 #include "StyleInvalidationAnalysis.h" |
47 #include "StyleResolver.h" | 47 #include "StyleResolver.h" |
48 #include "StyleSheetContents.h" | 48 #include "StyleSheetContents.h" |
49 #include "StyleSheetList.h" | 49 #include "StyleSheetList.h" |
50 #include "UserContentURLPattern.h" | 50 #include "UserContentURLPattern.h" |
51 #include "WebCoreMemoryInstrumentation.h" | |
52 #include <wtf/MemoryInstrumentationListHashSet.h> | |
53 #include <wtf/MemoryInstrumentationVector.h> | |
54 | 51 |
55 namespace WebCore { | 52 namespace WebCore { |
56 | 53 |
57 using namespace HTMLNames; | 54 using namespace HTMLNames; |
58 | 55 |
59 DocumentStyleSheetCollection::DocumentStyleSheetCollection(Document* document) | 56 DocumentStyleSheetCollection::DocumentStyleSheetCollection(Document* document) |
60 : m_document(document) | 57 : m_document(document) |
61 , m_pendingStylesheets(0) | 58 , m_pendingStylesheets(0) |
62 , m_injectedStyleSheetCacheValid(false) | 59 , m_injectedStyleSheetCacheValid(false) |
63 , m_hadActiveLoadingStylesheet(false) | 60 , m_hadActiveLoadingStylesheet(false) |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 m_styleSheetsForStyleSheetList.swap(activeStyleSheets); | 479 m_styleSheetsForStyleSheetList.swap(activeStyleSheets); |
483 | 480 |
484 m_usesRemUnits = styleSheetsUseRemUnits(m_activeAuthorStyleSheets); | 481 m_usesRemUnits = styleSheetsUseRemUnits(m_activeAuthorStyleSheets); |
485 m_needsUpdateActiveStylesheetsOnStyleRecalc = false; | 482 m_needsUpdateActiveStylesheetsOnStyleRecalc = false; |
486 | 483 |
487 m_document->notifySeamlessChildDocumentsOfStylesheetUpdate(); | 484 m_document->notifySeamlessChildDocumentsOfStylesheetUpdate(); |
488 | 485 |
489 return requiresFullStyleRecalc; | 486 return requiresFullStyleRecalc; |
490 } | 487 } |
491 | 488 |
492 void DocumentStyleSheetCollection::reportMemoryUsage(MemoryObjectInfo* memoryObj
ectInfo) const | |
493 { | |
494 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); | |
495 info.addMember(m_pageUserSheet, "pageUserSheet"); | |
496 info.addMember(m_injectedUserStyleSheets, "injectedUserStyleSheets"); | |
497 info.addMember(m_injectedAuthorStyleSheets, "injectedAuthorStyleSheets"); | |
498 info.addMember(m_userStyleSheets, "userStyleSheets"); | |
499 info.addMember(m_authorStyleSheets, "authorStyleSheets"); | |
500 info.addMember(m_activeAuthorStyleSheets, "activeAuthorStyleSheets"); | |
501 info.addMember(m_styleSheetsForStyleSheetList, "styleSheetsForStyleSheetList
"); | |
502 info.addMember(m_styleSheetCandidateNodes, "styleSheetCandidateNodes"); | |
503 info.addMember(m_preferredStylesheetSetName, "preferredStylesheetSetName"); | |
504 info.addMember(m_selectedStylesheetSetName, "selectedStylesheetSetName"); | |
505 info.addMember(m_document, "document"); | |
506 } | 489 } |
507 | |
508 } | |
OLD | NEW |