| 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 19 matching lines...) Expand all Loading... |
| 30 #include "sky/engine/core/css/CSSFontSelector.h" | 30 #include "sky/engine/core/css/CSSFontSelector.h" |
| 31 #include "sky/engine/core/css/CSSStyleSheet.h" | 31 #include "sky/engine/core/css/CSSStyleSheet.h" |
| 32 #include "sky/engine/core/css/FontFace.h" | 32 #include "sky/engine/core/css/FontFace.h" |
| 33 #include "sky/engine/core/css/FontFaceCache.h" | 33 #include "sky/engine/core/css/FontFaceCache.h" |
| 34 #include "sky/engine/core/css/StyleSheetContents.h" | 34 #include "sky/engine/core/css/StyleSheetContents.h" |
| 35 #include "sky/engine/core/dom/Document.h" | 35 #include "sky/engine/core/dom/Document.h" |
| 36 #include "sky/engine/core/dom/Element.h" | 36 #include "sky/engine/core/dom/Element.h" |
| 37 #include "sky/engine/core/dom/ElementTraversal.h" | 37 #include "sky/engine/core/dom/ElementTraversal.h" |
| 38 #include "sky/engine/core/dom/shadow/ShadowRoot.h" | 38 #include "sky/engine/core/dom/shadow/ShadowRoot.h" |
| 39 #include "sky/engine/core/frame/Settings.h" | 39 #include "sky/engine/core/frame/Settings.h" |
| 40 #include "sky/engine/core/html/HTMLStyleElement.h" | |
| 41 #include "sky/engine/core/html/imports/HTMLImportsController.h" | |
| 42 #include "sky/engine/core/page/Page.h" | 40 #include "sky/engine/core/page/Page.h" |
| 43 #include "sky/engine/core/rendering/RenderView.h" | 41 #include "sky/engine/core/rendering/RenderView.h" |
| 44 | 42 |
| 45 namespace blink { | 43 namespace blink { |
| 46 | 44 |
| 47 StyleEngine::StyleEngine(Document& document) | 45 StyleEngine::StyleEngine(Document& document) |
| 48 : m_document(&document) | 46 : m_document(&document) |
| 49 , m_resolver(adoptPtr(new StyleResolver(*m_document))) | 47 , m_resolver(adoptPtr(new StyleResolver(*m_document))) |
| 50 , m_fontSelector(CSSFontSelector::create(&document)) | 48 , m_fontSelector(CSSFontSelector::create(&document)) |
| 51 { | 49 { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 m_sheetToTextCache.remove(contents); | 153 m_sheetToTextCache.remove(contents); |
| 156 } | 154 } |
| 157 | 155 |
| 158 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) | 156 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) |
| 159 { | 157 { |
| 160 m_resolver->invalidateMatchedPropertiesCache(); | 158 m_resolver->invalidateMatchedPropertiesCache(); |
| 161 m_document->setNeedsStyleRecalc(SubtreeStyleChange); | 159 m_document->setNeedsStyleRecalc(SubtreeStyleChange); |
| 162 } | 160 } |
| 163 | 161 |
| 164 } | 162 } |
| OLD | NEW |