| 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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
| 7 * rights reserved. | 7 * rights reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| (...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1700 | 1700 |
| 1701 bool Document::hasPendingForcedStyleRecalc() const { | 1701 bool Document::hasPendingForcedStyleRecalc() const { |
| 1702 return hasPendingVisualUpdate() && !inStyleRecalc() && | 1702 return hasPendingVisualUpdate() && !inStyleRecalc() && |
| 1703 getStyleChangeType() >= SubtreeStyleChange; | 1703 getStyleChangeType() >= SubtreeStyleChange; |
| 1704 } | 1704 } |
| 1705 | 1705 |
| 1706 void Document::updateStyleInvalidationIfNeeded() { | 1706 void Document::updateStyleInvalidationIfNeeded() { |
| 1707 DCHECK(isActive()); | 1707 DCHECK(isActive()); |
| 1708 ScriptForbiddenScope forbidScript; | 1708 ScriptForbiddenScope forbidScript; |
| 1709 | 1709 |
| 1710 if (!childNeedsStyleInvalidation()) | 1710 if (!childNeedsStyleInvalidation() && !needsStyleInvalidation()) |
| 1711 return; | 1711 return; |
| 1712 TRACE_EVENT0("blink", "Document::updateStyleInvalidationIfNeeded"); | 1712 TRACE_EVENT0("blink", "Document::updateStyleInvalidationIfNeeded"); |
| 1713 styleEngine().styleInvalidator().invalidate(*this); | 1713 styleEngine().styleInvalidator().invalidate(*this); |
| 1714 } | 1714 } |
| 1715 | 1715 |
| 1716 void Document::setupFontBuilder(ComputedStyle& documentStyle) { | 1716 void Document::setupFontBuilder(ComputedStyle& documentStyle) { |
| 1717 FontBuilder fontBuilder(*this); | 1717 FontBuilder fontBuilder(*this); |
| 1718 CSSFontSelector* selector = styleEngine().fontSelector(); | 1718 CSSFontSelector* selector = styleEngine().fontSelector(); |
| 1719 fontBuilder.createFontForDocument(selector, documentStyle); | 1719 fontBuilder.createFontForDocument(selector, documentStyle); |
| 1720 } | 1720 } |
| (...skipping 4859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6580 } | 6580 } |
| 6581 | 6581 |
| 6582 void showLiveDocumentInstances() { | 6582 void showLiveDocumentInstances() { |
| 6583 WeakDocumentSet& set = liveDocumentSet(); | 6583 WeakDocumentSet& set = liveDocumentSet(); |
| 6584 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6584 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6585 for (blink::Document* document : set) | 6585 for (blink::Document* document : set) |
| 6586 fprintf(stderr, "- Document %p URL: %s\n", document, | 6586 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6587 document->url().getString().utf8().data()); | 6587 document->url().getString().utf8().data()); |
| 6588 } | 6588 } |
| 6589 #endif | 6589 #endif |
| OLD | NEW |