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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 4594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5235 void Document::modifiedStyleSheet(StyleSheet* sheet, RecalcStyleTime when, Style
ResolverUpdateMode updateMode) | 5234 void Document::modifiedStyleSheet(StyleSheet* sheet, RecalcStyleTime when, Style
ResolverUpdateMode updateMode) |
5236 { | 5235 { |
5237 if (!isActive()) | 5236 if (!isActive()) |
5238 return; | 5237 return; |
5239 | 5238 |
5240 styleEngine()->modifiedStyleSheet(sheet); | 5239 styleEngine()->modifiedStyleSheet(sheet); |
5241 styleResolverChanged(when, updateMode); | 5240 styleResolverChanged(when, updateMode); |
5242 } | 5241 } |
5243 | 5242 |
5244 } // namespace WebCore | 5243 } // namespace WebCore |
OLD | NEW |