Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: sky/engine/core/dom/StyleEngine.cpp

Issue 834693007: Remove the remaining parts of ignorePendingStylesheets and placeholder styles. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove comment. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/dom/StyleEngine.h ('k') | sky/engine/core/editing/ApplyBlockElementCommand.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « sky/engine/core/dom/StyleEngine.h ('k') | sky/engine/core/editing/ApplyBlockElementCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698