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

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

Issue 803133002: Use invalidation sets for fullscreen pseudos. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Load fullscreen.css on demand Created 4 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | no next file » | 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 10 matching lines...) Expand all
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 "core/dom/StyleEngine.h" 28 #include "core/dom/StyleEngine.h"
29 29
30 #include "core/HTMLNames.h" 30 #include "core/HTMLNames.h"
31 #include "core/css/CSSDefaultStyleSheets.h"
31 #include "core/css/CSSFontSelector.h" 32 #include "core/css/CSSFontSelector.h"
32 #include "core/css/CSSStyleSheet.h" 33 #include "core/css/CSSStyleSheet.h"
33 #include "core/css/FontFaceCache.h" 34 #include "core/css/FontFaceCache.h"
34 #include "core/css/StyleSheetContents.h" 35 #include "core/css/StyleSheetContents.h"
35 #include "core/css/invalidation/InvalidationSet.h" 36 #include "core/css/invalidation/InvalidationSet.h"
36 #include "core/css/resolver/ScopedStyleResolver.h" 37 #include "core/css/resolver/ScopedStyleResolver.h"
37 #include "core/dom/DocumentStyleSheetCollector.h" 38 #include "core/dom/DocumentStyleSheetCollector.h"
38 #include "core/dom/Element.h" 39 #include "core/dom/Element.h"
39 #include "core/dom/ProcessingInstruction.h" 40 #include "core/dom/ProcessingInstruction.h"
40 #include "core/dom/ShadowTreeStyleSheetCollection.h" 41 #include "core/dom/ShadowTreeStyleSheetCollection.h"
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 // from here. 749 // from here.
749 } 750 }
750 751
751 void StyleEngine::setHttpDefaultStyle(const String& content) 752 void StyleEngine::setHttpDefaultStyle(const String& content)
752 { 753 {
753 setPreferredStylesheetSetNameIfNotSet(content); 754 setPreferredStylesheetSetNameIfNotSet(content);
754 markDocumentDirty(); 755 markDocumentDirty();
755 resolverChanged(FullStyleUpdate); 756 resolverChanged(FullStyleUpdate);
756 } 757 }
757 758
759 void StyleEngine::ensureFullscreenUAStyle()
760 {
761 CSSDefaultStyleSheets::instance().ensureDefaultStyleSheetForFullscreen();
762 if (!m_resolver)
763 return;
764 if (!m_resolver->hasFullscreenUAStyle())
765 m_resolver->resetRuleFeatures();
766 }
767
758 DEFINE_TRACE(StyleEngine) 768 DEFINE_TRACE(StyleEngine)
759 { 769 {
760 #if ENABLE(OILPAN) 770 #if ENABLE(OILPAN)
761 visitor->trace(m_document); 771 visitor->trace(m_document);
762 visitor->trace(m_injectedAuthorStyleSheets); 772 visitor->trace(m_injectedAuthorStyleSheets);
763 visitor->trace(m_documentStyleSheetCollection); 773 visitor->trace(m_documentStyleSheetCollection);
764 visitor->trace(m_styleSheetCollectionMap); 774 visitor->trace(m_styleSheetCollectionMap);
765 visitor->trace(m_resolver); 775 visitor->trace(m_resolver);
766 visitor->trace(m_styleInvalidator); 776 visitor->trace(m_styleInvalidator);
767 visitor->trace(m_dirtyTreeScopes); 777 visitor->trace(m_dirtyTreeScopes);
768 visitor->trace(m_activeTreeScopes); 778 visitor->trace(m_activeTreeScopes);
769 visitor->trace(m_fontSelector); 779 visitor->trace(m_fontSelector);
770 visitor->trace(m_textToSheetCache); 780 visitor->trace(m_textToSheetCache);
771 visitor->trace(m_sheetToTextCache); 781 visitor->trace(m_sheetToTextCache);
772 #endif 782 #endif
773 CSSFontSelectorClient::trace(visitor); 783 CSSFontSelectorClient::trace(visitor);
774 } 784 }
775 785
776 } // namespace blink 786 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698