| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 #include "core/dom/DocumentLifecycleObserver.h" | 69 #include "core/dom/DocumentLifecycleObserver.h" |
| 70 #include "core/dom/DocumentMarkerController.h" | 70 #include "core/dom/DocumentMarkerController.h" |
| 71 #include "core/dom/DocumentType.h" | 71 #include "core/dom/DocumentType.h" |
| 72 #include "core/dom/Element.h" | 72 #include "core/dom/Element.h" |
| 73 #include "core/dom/ElementDataCache.h" | 73 #include "core/dom/ElementDataCache.h" |
| 74 #include "core/dom/ElementRegistrationOptions.h" | 74 #include "core/dom/ElementRegistrationOptions.h" |
| 75 #include "core/dom/ElementTraversal.h" | 75 #include "core/dom/ElementTraversal.h" |
| 76 #include "core/dom/ExceptionCode.h" | 76 #include "core/dom/ExceptionCode.h" |
| 77 #include "core/dom/ExecutionContextTask.h" | 77 #include "core/dom/ExecutionContextTask.h" |
| 78 #include "core/dom/FrameRequestCallback.h" | 78 #include "core/dom/FrameRequestCallback.h" |
| 79 #include "core/dom/LayoutTreeBuilderTraversal.h" |
| 79 #include "core/dom/MainThreadTaskRunner.h" | 80 #include "core/dom/MainThreadTaskRunner.h" |
| 80 #include "core/dom/Microtask.h" | 81 #include "core/dom/Microtask.h" |
| 81 #include "core/dom/MutationObserver.h" | 82 #include "core/dom/MutationObserver.h" |
| 82 #include "core/dom/NodeChildRemovalTracker.h" | 83 #include "core/dom/NodeChildRemovalTracker.h" |
| 83 #include "core/dom/NodeFilter.h" | 84 #include "core/dom/NodeFilter.h" |
| 84 #include "core/dom/NodeIterator.h" | 85 #include "core/dom/NodeIterator.h" |
| 85 #include "core/dom/NodeComputedStyle.h" | 86 #include "core/dom/NodeComputedStyle.h" |
| 86 #include "core/dom/NodeRareData.h" | 87 #include "core/dom/NodeRareData.h" |
| 87 #include "core/dom/NodeRenderingTraversal.h" | |
| 88 #include "core/dom/NodeTraversal.h" | 88 #include "core/dom/NodeTraversal.h" |
| 89 #include "core/dom/NodeWithIndex.h" | 89 #include "core/dom/NodeWithIndex.h" |
| 90 #include "core/dom/NthIndexCache.h" | 90 #include "core/dom/NthIndexCache.h" |
| 91 #include "core/dom/ProcessingInstruction.h" | 91 #include "core/dom/ProcessingInstruction.h" |
| 92 #include "core/dom/ScriptRunner.h" | 92 #include "core/dom/ScriptRunner.h" |
| 93 #include "core/dom/ScriptedAnimationController.h" | 93 #include "core/dom/ScriptedAnimationController.h" |
| 94 #include "core/dom/SelectorQuery.h" | 94 #include "core/dom/SelectorQuery.h" |
| 95 #include "core/dom/StaticNodeList.h" | 95 #include "core/dom/StaticNodeList.h" |
| 96 #include "core/dom/StyleEngine.h" | 96 #include "core/dom/StyleEngine.h" |
| 97 #include "core/dom/TouchList.h" | 97 #include "core/dom/TouchList.h" |
| (...skipping 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1849 { | 1849 { |
| 1850 ASSERT(node); | 1850 ASSERT(node); |
| 1851 if (!node->canParticipateInComposedTree()) | 1851 if (!node->canParticipateInComposedTree()) |
| 1852 return; | 1852 return; |
| 1853 if (!needsRenderTreeUpdate()) | 1853 if (!needsRenderTreeUpdate()) |
| 1854 return; | 1854 return; |
| 1855 | 1855 |
| 1856 bool needsRecalc = needsFullRenderTreeUpdate() || node->needsStyleRecalc() |
| node->needsStyleInvalidation(); | 1856 bool needsRecalc = needsFullRenderTreeUpdate() || node->needsStyleRecalc() |
| node->needsStyleInvalidation(); |
| 1857 | 1857 |
| 1858 if (!needsRecalc) { | 1858 if (!needsRecalc) { |
| 1859 for (const ContainerNode* ancestor = NodeRenderingTraversal::parent(*nod
e); ancestor && !needsRecalc; ancestor = NodeRenderingTraversal::parent(*ancesto
r)) | 1859 for (const ContainerNode* ancestor = LayoutTreeBuilderTraversal::parent(
*node); ancestor && !needsRecalc; ancestor = LayoutTreeBuilderTraversal::parent(
*ancestor)) |
| 1860 needsRecalc = ancestor->needsStyleRecalc() || ancestor->needsStyleIn
validation() || ancestor->needsAdjacentStyleRecalc(); | 1860 needsRecalc = ancestor->needsStyleRecalc() || ancestor->needsStyleIn
validation() || ancestor->needsAdjacentStyleRecalc(); |
| 1861 } | 1861 } |
| 1862 | 1862 |
| 1863 if (needsRecalc) | 1863 if (needsRecalc) |
| 1864 updateRenderTreeIfNeeded(); | 1864 updateRenderTreeIfNeeded(); |
| 1865 } | 1865 } |
| 1866 | 1866 |
| 1867 void Document::updateLayout() | 1867 void Document::updateLayout() |
| 1868 { | 1868 { |
| 1869 ASSERT(isMainThread()); | 1869 ASSERT(isMainThread()); |
| (...skipping 3839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5709 #ifndef NDEBUG | 5709 #ifndef NDEBUG |
| 5710 using namespace blink; | 5710 using namespace blink; |
| 5711 void showLiveDocumentInstances() | 5711 void showLiveDocumentInstances() |
| 5712 { | 5712 { |
| 5713 WeakDocumentSet& set = liveDocumentSet(); | 5713 WeakDocumentSet& set = liveDocumentSet(); |
| 5714 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5714 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5715 for (Document* document : set) | 5715 for (Document* document : set) |
| 5716 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5716 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 5717 } | 5717 } |
| 5718 #endif | 5718 #endif |
| OLD | NEW |