Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 1375833003: Chrome currently doesn't ignore transitions when using "@media print" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Space issues Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 , m_hasNodesWithPlaceholderStyle(false) 378 , m_hasNodesWithPlaceholderStyle(false)
379 , m_evaluateMediaQueriesOnStyleRecalc(false) 379 , m_evaluateMediaQueriesOnStyleRecalc(false)
380 , m_pendingSheetLayout(NoLayoutWithPendingSheets) 380 , m_pendingSheetLayout(NoLayoutWithPendingSheets)
381 , m_frame(initializer.frame()) 381 , m_frame(initializer.frame())
382 , m_domWindow(m_frame ? m_frame->localDOMWindow() : 0) 382 , m_domWindow(m_frame ? m_frame->localDOMWindow() : 0)
383 , m_importsController(initializer.importsController()) 383 , m_importsController(initializer.importsController())
384 , m_activeParserCount(0) 384 , m_activeParserCount(0)
385 , m_contextFeatures(ContextFeatures::defaultSwitch()) 385 , m_contextFeatures(ContextFeatures::defaultSwitch())
386 , m_wellFormed(false) 386 , m_wellFormed(false)
387 , m_printing(false) 387 , m_printing(false)
388 , m_wasPrinting(false)
388 , m_paginatedForScreen(false) 389 , m_paginatedForScreen(false)
389 , m_compatibilityMode(NoQuirksMode) 390 , m_compatibilityMode(NoQuirksMode)
390 , m_compatibilityModeLocked(false) 391 , m_compatibilityModeLocked(false)
391 , m_executeScriptsWaitingForResourcesTask(CancellableTaskFactory::create(thi s, &Document::executeScriptsWaitingForResources)) 392 , m_executeScriptsWaitingForResourcesTask(CancellableTaskFactory::create(thi s, &Document::executeScriptsWaitingForResources))
392 , m_hasAutofocused(false) 393 , m_hasAutofocused(false)
393 , m_clearFocusedElementTimer(this, &Document::clearFocusedElementTimerFired) 394 , m_clearFocusedElementTimer(this, &Document::clearFocusedElementTimerFired)
394 , m_domTreeVersion(++s_globalTreeVersion) 395 , m_domTreeVersion(++s_globalTreeVersion)
395 , m_styleVersion(0) 396 , m_styleVersion(0)
396 , m_listenerTypes(0) 397 , m_listenerTypes(0)
397 , m_mutationObserverTypes(0) 398 , m_mutationObserverTypes(0)
(...skipping 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after
1828 1829
1829 view()->recalcOverflowAfterStyleChange(); 1830 view()->recalcOverflowAfterStyleChange();
1830 view()->setFrameTimingRequestsDirty(true); 1831 view()->setFrameTimingRequestsDirty(true);
1831 1832
1832 clearChildNeedsStyleRecalc(); 1833 clearChildNeedsStyleRecalc();
1833 1834
1834 // Pseudo element removal and similar may only work with these flags still s et. Reset them after the style recalc. 1835 // Pseudo element removal and similar may only work with these flags still s et. Reset them after the style recalc.
1835 styleEngine().resetCSSFeatureFlags(resolver.ensureUpdatedRuleFeatureSet()); 1836 styleEngine().resetCSSFeatureFlags(resolver.ensureUpdatedRuleFeatureSet());
1836 resolver.clearStyleSharingList(); 1837 resolver.clearStyleSharingList();
1837 1838
1839 m_wasPrinting = m_printing;
1840
1838 ASSERT(!needsStyleRecalc()); 1841 ASSERT(!needsStyleRecalc());
1839 ASSERT(!childNeedsStyleRecalc()); 1842 ASSERT(!childNeedsStyleRecalc());
1840 ASSERT(inStyleRecalc()); 1843 ASSERT(inStyleRecalc());
1841 ASSERT(styleResolver() == &resolver); 1844 ASSERT(styleResolver() == &resolver);
1842 m_lifecycle.advanceTo(DocumentLifecycle::StyleClean); 1845 m_lifecycle.advanceTo(DocumentLifecycle::StyleClean);
1843 if (shouldRecordStats) { 1846 if (shouldRecordStats) {
1844 TRACE_EVENT_END2("blink,blink_style", "Document::updateStyle", 1847 TRACE_EVENT_END2("blink,blink_style", "Document::updateStyle",
1845 "resolverAccessCount", styleEngine().resolverAccessCount() - initial ResolverAccessCount, 1848 "resolverAccessCount", styleEngine().resolverAccessCount() - initial ResolverAccessCount,
1846 "counters", resolver.stats()->toTracedValue()); 1849 "counters", resolver.stats()->toTracedValue());
1847 } else { 1850 } else {
(...skipping 3906 matching lines...) Expand 10 before | Expand all | Expand 10 after
5754 #ifndef NDEBUG 5757 #ifndef NDEBUG
5755 using namespace blink; 5758 using namespace blink;
5756 void showLiveDocumentInstances() 5759 void showLiveDocumentInstances()
5757 { 5760 {
5758 Document::WeakDocumentSet& set = Document::liveDocumentSet(); 5761 Document::WeakDocumentSet& set = Document::liveDocumentSet();
5759 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 5762 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
5760 for (Document* document : set) 5763 for (Document* document : set)
5761 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data()); 5764 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data());
5762 } 5765 }
5763 #endif 5766 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698