| 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 m_documentStyleSheetCollection.clearMediaQueryRuleSetStyleSheets(); | 333 m_documentStyleSheetCollection.clearMediaQueryRuleSetStyleSheets(); |
| 334 clearMediaQueryRuleSetOnTreeScopeStyleSheets(m_activeTreeScopes); | 334 clearMediaQueryRuleSetOnTreeScopeStyleSheets(m_activeTreeScopes); |
| 335 clearMediaQueryRuleSetOnTreeScopeStyleSheets(m_dirtyTreeScopes); | 335 clearMediaQueryRuleSetOnTreeScopeStyleSheets(m_dirtyTreeScopes); |
| 336 } | 336 } |
| 337 | 337 |
| 338 void StyleEngine::collectDocumentActiveStyleSheets(StyleSheetCollectionBase& col
lection) | 338 void StyleEngine::collectDocumentActiveStyleSheets(StyleSheetCollectionBase& col
lection) |
| 339 { | 339 { |
| 340 ASSERT(isMaster()); | 340 ASSERT(isMaster()); |
| 341 | 341 |
| 342 if (HTMLImport* rootImport = m_document.import()) { | 342 if (HTMLImport* rootImport = m_document.import()) { |
| 343 for (HTMLImport* import = traverseFirstPostOrder(*rootImport); import; i
mport = traverseNextPostOrder(*import)) { | 343 for (HTMLImport* import = traverseFirstPostOrder<HTMLImport>(*rootImport
); import; import = traverseNextPostOrder<HTMLImport>(*import)) { |
| 344 Document* document = import->document(); | 344 Document* document = import->document(); |
| 345 if (!document) | 345 if (!document) |
| 346 continue; | 346 continue; |
| 347 StyleEngine* engine = document->styleEngine(); | 347 StyleEngine* engine = document->styleEngine(); |
| 348 DocumentStyleSheetCollection::CollectFor collectFor = document == &m
_document ? | 348 DocumentStyleSheetCollection::CollectFor collectFor = document == &m
_document ? |
| 349 DocumentStyleSheetCollection::CollectForList : DocumentStyleShee
tCollection::DontCollectForList; | 349 DocumentStyleSheetCollection::CollectForList : DocumentStyleShee
tCollection::DontCollectForList; |
| 350 engine->m_documentStyleSheetCollection.collectStyleSheets(engine, co
llection, collectFor); | 350 engine->m_documentStyleSheetCollection.collectStyleSheets(engine, co
llection, collectFor); |
| 351 } | 351 } |
| 352 } else { | 352 } else { |
| 353 m_documentStyleSheetCollection.collectStyleSheets(this, collection, Docu
mentStyleSheetCollection::CollectForList); | 353 m_documentStyleSheetCollection.collectStyleSheets(this, collection, Docu
mentStyleSheetCollection::CollectForList); |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 } | 568 } |
| 569 | 569 |
| 570 void StyleEngine::markDocumentDirty() | 570 void StyleEngine::markDocumentDirty() |
| 571 { | 571 { |
| 572 m_documentScopeDirty = true; | 572 m_documentScopeDirty = true; |
| 573 if (!HTMLImport::isMaster(&m_document)) | 573 if (!HTMLImport::isMaster(&m_document)) |
| 574 m_document.import()->master()->styleEngine()->markDocumentDirty(); | 574 m_document.import()->master()->styleEngine()->markDocumentDirty(); |
| 575 } | 575 } |
| 576 | 576 |
| 577 } | 577 } |
| OLD | NEW |