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

Side by Side Diff: Source/core/dom/Document.cpp

Issue 66383005: Remove the concept of user stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix WebFrameCSSCallbackTest tests Created 7 years, 1 month 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 | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/dom/StyleEngine.h » ('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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 } 619 }
620 620
621 void Document::setCompatibilityMode(CompatibilityMode mode) 621 void Document::setCompatibilityMode(CompatibilityMode mode)
622 { 622 {
623 if (m_compatibilityModeLocked || mode == m_compatibilityMode) 623 if (m_compatibilityModeLocked || mode == m_compatibilityMode)
624 return; 624 return;
625 bool wasInQuirksMode = inQuirksMode(); 625 bool wasInQuirksMode = inQuirksMode();
626 m_compatibilityMode = mode; 626 m_compatibilityMode = mode;
627 selectorQueryCache().invalidate(); 627 selectorQueryCache().invalidate();
628 if (inQuirksMode() != wasInQuirksMode) { 628 if (inQuirksMode() != wasInQuirksMode) {
629 // All user stylesheets have to reparse using the different mode. 629 // All injected stylesheets have to reparse using the different mode.
630 m_styleEngine->clearPageUserSheet();
631 m_styleEngine->invalidateInjectedStyleSheetCache(); 630 m_styleEngine->invalidateInjectedStyleSheetCache();
632 } 631 }
633 } 632 }
634 633
635 String Document::compatMode() const 634 String Document::compatMode() const
636 { 635 {
637 return inQuirksMode() ? "BackCompat" : "CSS1Compat"; 636 return inQuirksMode() ? "BackCompat" : "CSS1Compat";
638 } 637 }
639 638
640 void Document::setDoctype(PassRefPtr<DocumentType> docType) 639 void Document::setDoctype(PassRefPtr<DocumentType> docType)
(...skipping 4591 matching lines...) Expand 10 before | Expand all | Expand 10 after
5232 void Document::modifiedStyleSheet(StyleSheet* sheet, RecalcStyleTime when, Style ResolverUpdateMode updateMode) 5231 void Document::modifiedStyleSheet(StyleSheet* sheet, RecalcStyleTime when, Style ResolverUpdateMode updateMode)
5233 { 5232 {
5234 if (!isActive()) 5233 if (!isActive())
5235 return; 5234 return;
5236 5235
5237 styleEngine()->modifiedStyleSheet(sheet); 5236 styleEngine()->modifiedStyleSheet(sheet);
5238 styleResolverChanged(when, updateMode); 5237 styleResolverChanged(when, updateMode);
5239 } 5238 }
5240 5239
5241 } // namespace WebCore 5240 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/dom/StyleEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698