| 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 2036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2047 { | 2047 { |
| 2048 updateLayoutTreeIgnorePendingStylesheets(); | 2048 updateLayoutTreeIgnorePendingStylesheets(); |
| 2049 updateLayout(); | 2049 updateLayout(); |
| 2050 | 2050 |
| 2051 if (runPostLayoutTasks == RunPostLayoutTasksSynchronously && view()) | 2051 if (runPostLayoutTasks == RunPostLayoutTasksSynchronously && view()) |
| 2052 view()->flushAnyPendingPostLayoutTasks(); | 2052 view()->flushAnyPendingPostLayoutTasks(); |
| 2053 } | 2053 } |
| 2054 | 2054 |
| 2055 PassRefPtr<ComputedStyle> Document::styleForElementIgnoringPendingStylesheets(El
ement* element) | 2055 PassRefPtr<ComputedStyle> Document::styleForElementIgnoringPendingStylesheets(El
ement* element) |
| 2056 { | 2056 { |
| 2057 ASSERT_ARG(element, element->document() == this); | 2057 DCHECK_EQ(element->document(), this); |
| 2058 StyleEngine::IgnoringPendingStylesheet ignoring(styleEngine()); | 2058 StyleEngine::IgnoringPendingStylesheet ignoring(styleEngine()); |
| 2059 return ensureStyleResolver().styleForElement(element, element->parentNode()
? element->parentNode()->ensureComputedStyle() : 0); | 2059 return ensureStyleResolver().styleForElement(element, element->parentNode()
? element->parentNode()->ensureComputedStyle() : 0); |
| 2060 } | 2060 } |
| 2061 | 2061 |
| 2062 PassRefPtr<ComputedStyle> Document::styleForPage(int pageIndex) | 2062 PassRefPtr<ComputedStyle> Document::styleForPage(int pageIndex) |
| 2063 { | 2063 { |
| 2064 updateDistribution(); | 2064 updateDistribution(); |
| 2065 return ensureStyleResolver().styleForPage(pageIndex); | 2065 return ensureStyleResolver().styleForPage(pageIndex); |
| 2066 } | 2066 } |
| 2067 | 2067 |
| (...skipping 3968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6036 #ifndef NDEBUG | 6036 #ifndef NDEBUG |
| 6037 using namespace blink; | 6037 using namespace blink; |
| 6038 void showLiveDocumentInstances() | 6038 void showLiveDocumentInstances() |
| 6039 { | 6039 { |
| 6040 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 6040 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 6041 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6041 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6042 for (Document* document : set) | 6042 for (Document* document : set) |
| 6043 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6043 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
| 6044 } | 6044 } |
| 6045 #endif | 6045 #endif |
| OLD | NEW |