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 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1704 | 1704 |
1705 bool Document::hasPendingForcedStyleRecalc() const { | 1705 bool Document::hasPendingForcedStyleRecalc() const { |
1706 return hasPendingVisualUpdate() && !inStyleRecalc() && | 1706 return hasPendingVisualUpdate() && !inStyleRecalc() && |
1707 getStyleChangeType() >= SubtreeStyleChange; | 1707 getStyleChangeType() >= SubtreeStyleChange; |
1708 } | 1708 } |
1709 | 1709 |
1710 void Document::updateStyleInvalidationIfNeeded() { | 1710 void Document::updateStyleInvalidationIfNeeded() { |
1711 DCHECK(isActive()); | 1711 DCHECK(isActive()); |
1712 ScriptForbiddenScope forbidScript; | 1712 ScriptForbiddenScope forbidScript; |
1713 | 1713 |
1714 if (!childNeedsStyleInvalidation()) | 1714 if (!childNeedsStyleInvalidation() && !needsStyleInvalidation()) |
1715 return; | 1715 return; |
1716 TRACE_EVENT0("blink", "Document::updateStyleInvalidationIfNeeded"); | 1716 TRACE_EVENT0("blink", "Document::updateStyleInvalidationIfNeeded"); |
1717 styleEngine().styleInvalidator().invalidate(*this); | 1717 styleEngine().styleInvalidator().invalidate(*this); |
1718 } | 1718 } |
1719 | 1719 |
1720 void Document::setupFontBuilder(ComputedStyle& documentStyle) { | 1720 void Document::setupFontBuilder(ComputedStyle& documentStyle) { |
1721 FontBuilder fontBuilder(*this); | 1721 FontBuilder fontBuilder(*this); |
1722 CSSFontSelector* selector = styleEngine().fontSelector(); | 1722 CSSFontSelector* selector = styleEngine().fontSelector(); |
1723 fontBuilder.createFontForDocument(selector, documentStyle); | 1723 fontBuilder.createFontForDocument(selector, documentStyle); |
1724 } | 1724 } |
(...skipping 4862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6587 } | 6587 } |
6588 | 6588 |
6589 void showLiveDocumentInstances() { | 6589 void showLiveDocumentInstances() { |
6590 WeakDocumentSet& set = liveDocumentSet(); | 6590 WeakDocumentSet& set = liveDocumentSet(); |
6591 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6591 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6592 for (blink::Document* document : set) | 6592 for (blink::Document* document : set) |
6593 fprintf(stderr, "- Document %p URL: %s\n", document, | 6593 fprintf(stderr, "- Document %p URL: %s\n", document, |
6594 document->url().getString().utf8().data()); | 6594 document->url().getString().utf8().data()); |
6595 } | 6595 } |
6596 #endif | 6596 #endif |
OLD | NEW |