| 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 3769 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3780 void Document::notifyResizeForViewportUnits() { | 3780 void Document::notifyResizeForViewportUnits() { | 
| 3781   if (m_mediaQueryMatcher) | 3781   if (m_mediaQueryMatcher) | 
| 3782     m_mediaQueryMatcher->viewportChanged(); | 3782     m_mediaQueryMatcher->viewportChanged(); | 
| 3783   if (!hasViewportUnits()) | 3783   if (!hasViewportUnits()) | 
| 3784     return; | 3784     return; | 
| 3785   ensureStyleResolver().notifyResizeForViewportUnits(); | 3785   ensureStyleResolver().notifyResizeForViewportUnits(); | 
| 3786   setNeedsStyleRecalcForViewportUnits(); | 3786   setNeedsStyleRecalcForViewportUnits(); | 
| 3787 } | 3787 } | 
| 3788 | 3788 | 
| 3789 void Document::styleResolverMayHaveChanged() { | 3789 void Document::styleResolverMayHaveChanged() { | 
| 3790   styleEngine().resolverChanged(AnalyzedStyleUpdate); |  | 
| 3791 |  | 
| 3792   if (hasNodesWithPlaceholderStyle()) { | 3790   if (hasNodesWithPlaceholderStyle()) { | 
| 3793     setNeedsStyleRecalc(SubtreeStyleChange, | 3791     setNeedsStyleRecalc(SubtreeStyleChange, | 
| 3794                         StyleChangeReasonForTracing::create( | 3792                         StyleChangeReasonForTracing::create( | 
| 3795                             StyleChangeReason::CleanupPlaceholderStyles)); | 3793                             StyleChangeReason::CleanupPlaceholderStyles)); | 
| 3796   } | 3794   } | 
| 3797 | 3795 | 
| 3798   if (didLayoutWithPendingStylesheets() && | 3796   if (didLayoutWithPendingStylesheets() && | 
| 3799       !styleEngine().hasPendingScriptBlockingSheets()) { | 3797       !styleEngine().hasPendingScriptBlockingSheets()) { | 
| 3800     // We need to manually repaint because we avoid doing all repaints in layout | 3798     // We need to manually repaint because we avoid doing all repaints in layout | 
| 3801     // or style recalc while sheets are still loading to avoid FOUC. | 3799     // or style recalc while sheets are still loading to avoid FOUC. | 
| (...skipping 2783 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 6585 } | 6583 } | 
| 6586 | 6584 | 
| 6587 void showLiveDocumentInstances() { | 6585 void showLiveDocumentInstances() { | 
| 6588   WeakDocumentSet& set = liveDocumentSet(); | 6586   WeakDocumentSet& set = liveDocumentSet(); | 
| 6589   fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6587   fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 
| 6590   for (Document* document : set) | 6588   for (Document* document : set) | 
| 6591     fprintf(stderr, "- Document %p URL: %s\n", document, | 6589     fprintf(stderr, "- Document %p URL: %s\n", document, | 
| 6592             document->url().getString().utf8().data()); | 6590             document->url().getString().utf8().data()); | 
| 6593 } | 6591 } | 
| 6594 #endif | 6592 #endif | 
| OLD | NEW | 
|---|