| 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 28 matching lines...) Expand all Loading... |
| 39 #include "sky/engine/core/dom/shadow/ShadowRoot.h" | 39 #include "sky/engine/core/dom/shadow/ShadowRoot.h" |
| 40 #include "sky/engine/core/frame/Settings.h" | 40 #include "sky/engine/core/frame/Settings.h" |
| 41 #include "sky/engine/core/html/HTMLStyleElement.h" | 41 #include "sky/engine/core/html/HTMLStyleElement.h" |
| 42 #include "sky/engine/core/html/imports/HTMLImportsController.h" | 42 #include "sky/engine/core/html/imports/HTMLImportsController.h" |
| 43 #include "sky/engine/core/page/Page.h" | 43 #include "sky/engine/core/page/Page.h" |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 StyleEngine::StyleEngine(Document& document) | 47 StyleEngine::StyleEngine(Document& document) |
| 48 : m_document(&document) | 48 : m_document(&document) |
| 49 , m_ignorePendingStylesheets(false) | |
| 50 , m_fontSelector(CSSFontSelector::create(&document)) | 49 , m_fontSelector(CSSFontSelector::create(&document)) |
| 51 { | 50 { |
| 52 m_fontSelector->registerForInvalidationCallbacks(this); | 51 m_fontSelector->registerForInvalidationCallbacks(this); |
| 53 } | 52 } |
| 54 | 53 |
| 55 StyleEngine::~StyleEngine() | 54 StyleEngine::~StyleEngine() |
| 56 { | 55 { |
| 57 m_fontSelector->clearDocument(); | 56 m_fontSelector->clearDocument(); |
| 58 m_fontSelector->unregisterForInvalidationCallbacks(this); | 57 m_fontSelector->unregisterForInvalidationCallbacks(this); |
| 59 } | 58 } |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 } | 221 } |
| 223 | 222 |
| 224 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) | 223 void StyleEngine::fontsNeedUpdate(CSSFontSelector*) |
| 225 { | 224 { |
| 226 if (m_resolver) | 225 if (m_resolver) |
| 227 m_resolver->invalidateMatchedPropertiesCache(); | 226 m_resolver->invalidateMatchedPropertiesCache(); |
| 228 m_document->setNeedsStyleRecalc(SubtreeStyleChange); | 227 m_document->setNeedsStyleRecalc(SubtreeStyleChange); |
| 229 } | 228 } |
| 230 | 229 |
| 231 } | 230 } |
| OLD | NEW |