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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

Issue 1684193003: markDocumentDirty() before styleResolverChanged(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 { 149 {
150 m_usesSiblingRules = features.usesSiblingRules(); 150 m_usesSiblingRules = features.usesSiblingRules();
151 m_usesFirstLineRules = features.usesFirstLineRules(); 151 m_usesFirstLineRules = features.usesFirstLineRules();
152 m_usesWindowInactiveSelector = features.usesWindowInactiveSelector(); 152 m_usesWindowInactiveSelector = features.usesWindowInactiveSelector();
153 m_maxDirectAdjacentSelectors = features.maxDirectAdjacentSelectors(); 153 m_maxDirectAdjacentSelectors = features.maxDirectAdjacentSelectors();
154 } 154 }
155 155
156 void StyleEngine::injectAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> a uthorSheet) 156 void StyleEngine::injectAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> a uthorSheet)
157 { 157 {
158 m_injectedAuthorStyleSheets.append(CSSStyleSheet::create(authorSheet, m_docu ment)); 158 m_injectedAuthorStyleSheets.append(CSSStyleSheet::create(authorSheet, m_docu ment));
159 markDocumentDirty();
159 document().addedStyleSheet(m_injectedAuthorStyleSheets.last().get()); 160 document().addedStyleSheet(m_injectedAuthorStyleSheets.last().get());
160 markDocumentDirty();
161 } 161 }
162 162
163 void StyleEngine::addPendingSheet() 163 void StyleEngine::addPendingSheet()
164 { 164 {
165 m_pendingStylesheets++; 165 m_pendingStylesheets++;
166 } 166 }
167 167
168 // This method is called whenever a top-level stylesheet has finished loading. 168 // This method is called whenever a top-level stylesheet has finished loading.
169 void StyleEngine::removePendingSheet(Node* styleSheetCandidateNode) 169 void StyleEngine::removePendingSheet(Node* styleSheetCandidateNode)
170 { 170 {
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 visitor->trace(m_dirtyTreeScopes); 736 visitor->trace(m_dirtyTreeScopes);
737 visitor->trace(m_activeTreeScopes); 737 visitor->trace(m_activeTreeScopes);
738 visitor->trace(m_fontSelector); 738 visitor->trace(m_fontSelector);
739 visitor->trace(m_textToSheetCache); 739 visitor->trace(m_textToSheetCache);
740 visitor->trace(m_sheetToTextCache); 740 visitor->trace(m_sheetToTextCache);
741 #endif 741 #endif
742 CSSFontSelectorClient::trace(visitor); 742 CSSFontSelectorClient::trace(visitor);
743 } 743 }
744 744
745 } // namespace blink 745 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | third_party/WebKit/Source/core/dom/StyleEngineTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698