| 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 2015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2026 // printing/width-overflow.html though they only fail on mac when accessing | 2026 // printing/width-overflow.html though they only fail on mac when accessing |
| 2027 // the resolver by what appears to be a viewport size difference. | 2027 // the resolver by what appears to be a viewport size difference. |
| 2028 | 2028 |
| 2029 if (change == Force) { | 2029 if (change == Force) { |
| 2030 m_hasNodesWithPlaceholderStyle = false; | 2030 m_hasNodesWithPlaceholderStyle = false; |
| 2031 RefPtr<ComputedStyle> documentStyle = | 2031 RefPtr<ComputedStyle> documentStyle = |
| 2032 StyleResolver::styleForDocument(*this); | 2032 StyleResolver::styleForDocument(*this); |
| 2033 StyleRecalcChange localChange = ComputedStyle::stylePropagationDiff( | 2033 StyleRecalcChange localChange = ComputedStyle::stylePropagationDiff( |
| 2034 documentStyle.get(), layoutViewItem().style()); | 2034 documentStyle.get(), layoutViewItem().style()); |
| 2035 if (localChange != NoChange) | 2035 if (localChange != NoChange) |
| 2036 layoutViewItem().setStyle(documentStyle.release()); | 2036 layoutViewItem().setStyle(std::move(documentStyle)); |
| 2037 } | 2037 } |
| 2038 | 2038 |
| 2039 clearNeedsStyleRecalc(); | 2039 clearNeedsStyleRecalc(); |
| 2040 clearNeedsReattachLayoutTree(); | 2040 clearNeedsReattachLayoutTree(); |
| 2041 | 2041 |
| 2042 StyleResolver& resolver = ensureStyleResolver(); | 2042 StyleResolver& resolver = ensureStyleResolver(); |
| 2043 | 2043 |
| 2044 bool shouldRecordStats; | 2044 bool shouldRecordStats; |
| 2045 TRACE_EVENT_CATEGORY_GROUP_ENABLED("blink,blink_style", &shouldRecordStats); | 2045 TRACE_EVENT_CATEGORY_GROUP_ENABLED("blink,blink_style", &shouldRecordStats); |
| 2046 styleEngine().setStatsEnabled(shouldRecordStats); | 2046 styleEngine().setStatsEnabled(shouldRecordStats); |
| (...skipping 4536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6583 } | 6583 } |
| 6584 | 6584 |
| 6585 void showLiveDocumentInstances() { | 6585 void showLiveDocumentInstances() { |
| 6586 WeakDocumentSet& set = liveDocumentSet(); | 6586 WeakDocumentSet& set = liveDocumentSet(); |
| 6587 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6587 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6588 for (Document* document : set) | 6588 for (Document* document : set) |
| 6589 fprintf(stderr, "- Document %p URL: %s\n", document, | 6589 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6590 document->url().getString().utf8().data()); | 6590 document->url().getString().utf8().data()); |
| 6591 } | 6591 } |
| 6592 #endif | 6592 #endif |
| OLD | NEW |