| 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. |
| 11 * | 11 * |
| 12 * This library is free software; you can redistribute it and/or | 12 * This library is free software; you can redistribute it and/or |
| 13 * modify it under the terms of the GNU Library General Public | 13 * modify it under the terms of the GNU Library General Public |
| 14 * License as published by the Free Software Foundation; either | 14 * License as published by the Free Software Foundation; either |
| 15 * version 2 of the License, or (at your option) any later version. | 15 * version 2 of the License, or (at your option) any later version. |
| 16 * | 16 * |
| 17 * This library is distributed in the hope that it will be useful, | 17 * This library is distributed in the hope that it will be useful, |
| 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 20 * Library General Public License for more details. | 20 * Library General Public License for more details. |
| 21 * | 21 * |
| 22 * You should have received a copy of the GNU Library General Public License | 22 * You should have received a copy of the GNU Library General Public License |
| 23 * along with this library; see the file COPYING.LIB. If not, write to | 23 * along with this library; see the file COPYING.LIB. If not, write to |
| 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 25 * Boston, MA 02110-1301, USA. | 25 * Boston, MA 02110-1301, USA. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "config.h" | 28 #include "sky/engine/config.h" |
| 29 #include "core/dom/StyleEngine.h" | 29 #include "sky/engine/core/dom/StyleEngine.h" |
| 30 | 30 |
| 31 #include "core/css/CSSFontSelector.h" | 31 #include "sky/engine/core/css/CSSFontSelector.h" |
| 32 #include "core/css/CSSStyleSheet.h" | 32 #include "sky/engine/core/css/CSSStyleSheet.h" |
| 33 #include "core/css/FontFaceCache.h" | 33 #include "sky/engine/core/css/FontFaceCache.h" |
| 34 #include "core/css/StyleSheetContents.h" | 34 #include "sky/engine/core/css/StyleSheetContents.h" |
| 35 #include "core/dom/DocumentStyleSheetCollector.h" | 35 #include "sky/engine/core/dom/DocumentStyleSheetCollector.h" |
| 36 #include "core/dom/Element.h" | 36 #include "sky/engine/core/dom/Element.h" |
| 37 #include "core/dom/ShadowTreeStyleSheetCollection.h" | 37 #include "sky/engine/core/dom/ShadowTreeStyleSheetCollection.h" |
| 38 #include "core/dom/shadow/ShadowRoot.h" | 38 #include "sky/engine/core/dom/shadow/ShadowRoot.h" |
| 39 #include "core/html/HTMLStyleElement.h" | 39 #include "sky/engine/core/frame/Settings.h" |
| 40 #include "core/html/imports/HTMLImportsController.h" | 40 #include "sky/engine/core/html/HTMLStyleElement.h" |
| 41 #include "core/page/Page.h" | 41 #include "sky/engine/core/html/imports/HTMLImportsController.h" |
| 42 #include "core/frame/Settings.h" | 42 #include "sky/engine/core/page/Page.h" |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 StyleEngine::StyleEngine(Document& document) | 46 StyleEngine::StyleEngine(Document& document) |
| 47 : m_document(&document) | 47 : m_document(&document) |
| 48 , m_isMaster(!document.importsController() || document.importsController()->
master() == &document) | 48 , m_isMaster(!document.importsController() || document.importsController()->
master() == &document) |
| 49 , m_documentStyleSheetCollection(DocumentStyleSheetCollection::create(docume
nt)) | 49 , m_documentStyleSheetCollection(DocumentStyleSheetCollection::create(docume
nt)) |
| 50 , m_documentScopeDirty(true) | 50 , m_documentScopeDirty(true) |
| 51 , m_usesRemUnits(false) | 51 , m_usesRemUnits(false) |
| 52 , m_ignorePendingStylesheets(false) | 52 , m_ignorePendingStylesheets(false) |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 { | 506 { |
| 507 if (!document().isActive()) | 507 if (!document().isActive()) |
| 508 return; | 508 return; |
| 509 | 509 |
| 510 if (m_resolver) | 510 if (m_resolver) |
| 511 m_resolver->invalidateMatchedPropertiesCache(); | 511 m_resolver->invalidateMatchedPropertiesCache(); |
| 512 document().setNeedsStyleRecalc(SubtreeStyleChange); | 512 document().setNeedsStyleRecalc(SubtreeStyleChange); |
| 513 } | 513 } |
| 514 | 514 |
| 515 } | 515 } |
| OLD | NEW |