Chromium Code Reviews| 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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 618 | 618 |
| 619 void Document::setCompatibilityMode(CompatibilityMode mode) | 619 void Document::setCompatibilityMode(CompatibilityMode mode) |
| 620 { | 620 { |
| 621 if (m_compatibilityModeLocked || mode == m_compatibilityMode) | 621 if (m_compatibilityModeLocked || mode == m_compatibilityMode) |
| 622 return; | 622 return; |
| 623 bool wasInQuirksMode = inQuirksMode(); | 623 bool wasInQuirksMode = inQuirksMode(); |
| 624 m_compatibilityMode = mode; | 624 m_compatibilityMode = mode; |
| 625 selectorQueryCache().invalidate(); | 625 selectorQueryCache().invalidate(); |
| 626 if (inQuirksMode() != wasInQuirksMode) { | 626 if (inQuirksMode() != wasInQuirksMode) { |
| 627 // All injected stylesheets have to reparse using the different mode. | 627 // All injected stylesheets have to reparse using the different mode. |
| 628 StyleEngine::clearSheetCache(); | |
|
esprehn
2014/01/09 10:05:32
You still can't do this, loading any quirks mode d
tasak
2014/01/09 11:59:05
I see. I agree that it is much better to split cac
| |
| 628 m_styleEngine->invalidateInjectedStyleSheetCache(); | 629 m_styleEngine->invalidateInjectedStyleSheetCache(); |
| 629 } | 630 } |
| 630 } | 631 } |
| 631 | 632 |
| 632 String Document::compatMode() const | 633 String Document::compatMode() const |
| 633 { | 634 { |
| 634 return inQuirksMode() ? "BackCompat" : "CSS1Compat"; | 635 return inQuirksMode() ? "BackCompat" : "CSS1Compat"; |
| 635 } | 636 } |
| 636 | 637 |
| 637 void Document::setDoctype(PassRefPtr<DocumentType> docType) | 638 void Document::setDoctype(PassRefPtr<DocumentType> docType) |
| (...skipping 4632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5270 } | 5271 } |
| 5271 | 5272 |
| 5272 FastTextAutosizer* Document::fastTextAutosizer() | 5273 FastTextAutosizer* Document::fastTextAutosizer() |
| 5273 { | 5274 { |
| 5274 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable d()) | 5275 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable d()) |
| 5275 m_fastTextAutosizer = FastTextAutosizer::create(this); | 5276 m_fastTextAutosizer = FastTextAutosizer::create(this); |
| 5276 return m_fastTextAutosizer.get(); | 5277 return m_fastTextAutosizer.get(); |
| 5277 } | 5278 } |
| 5278 | 5279 |
| 5279 } // namespace WebCore | 5280 } // namespace WebCore |
| OLD | NEW |