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 1855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1866 | 1866 |
1867 if (needsFullLayoutTreeUpdate() || node.needsStyleRecalc() || node.needsStyl
eInvalidation()) | 1867 if (needsFullLayoutTreeUpdate() || node.needsStyleRecalc() || node.needsStyl
eInvalidation()) |
1868 return true; | 1868 return true; |
1869 for (const ContainerNode* ancestor = LayoutTreeBuilderTraversal::parent(node
); ancestor; ancestor = LayoutTreeBuilderTraversal::parent(*ancestor)) { | 1869 for (const ContainerNode* ancestor = LayoutTreeBuilderTraversal::parent(node
); ancestor; ancestor = LayoutTreeBuilderTraversal::parent(*ancestor)) { |
1870 if (ancestor->needsStyleRecalc() || ancestor->needsStyleInvalidation() |
| ancestor->needsAdjacentStyleRecalc()) | 1870 if (ancestor->needsStyleRecalc() || ancestor->needsStyleInvalidation() |
| ancestor->needsAdjacentStyleRecalc()) |
1871 return true; | 1871 return true; |
1872 } | 1872 } |
1873 return false; | 1873 return false; |
1874 } | 1874 } |
1875 | 1875 |
1876 void Document::updateLayoutTreeForNode(Node* node) | 1876 void Document::updateLayoutTreeForNode(const Node* node) |
1877 { | 1877 { |
1878 DCHECK(node); | 1878 DCHECK(node); |
1879 if (!needsLayoutTreeUpdateForNode(*node)) | 1879 if (!needsLayoutTreeUpdateForNode(*node)) |
1880 return; | 1880 return; |
1881 updateLayoutTree(); | 1881 updateLayoutTree(); |
1882 } | 1882 } |
1883 | 1883 |
1884 void Document::updateLayoutIgnorePendingStylesheetsForNode(Node* node) | 1884 void Document::updateLayoutIgnorePendingStylesheetsForNode(Node* node) |
1885 { | 1885 { |
1886 DCHECK(node); | 1886 DCHECK(node); |
(...skipping 4087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5974 #ifndef NDEBUG | 5974 #ifndef NDEBUG |
5975 using namespace blink; | 5975 using namespace blink; |
5976 void showLiveDocumentInstances() | 5976 void showLiveDocumentInstances() |
5977 { | 5977 { |
5978 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5978 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
5979 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5979 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5980 for (Document* document : set) | 5980 for (Document* document : set) |
5981 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 5981 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
5982 } | 5982 } |
5983 #endif | 5983 #endif |
OLD | NEW |