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

Side by Side Diff: sky/engine/core/dom/Document.cpp

Issue 858073003: Prune the API of StyleResolver. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/css/resolver/StyleResolver.cpp ('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 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 RELEASE_ASSERT(!view()->isPainting()); 1012 RELEASE_ASSERT(!view()->isPainting());
1013 1013
1014 // Script can run below in WidgetUpdates, so protect the LocalFrame. 1014 // Script can run below in WidgetUpdates, so protect the LocalFrame.
1015 // FIXME: Can this still happen? How does script run inside 1015 // FIXME: Can this still happen? How does script run inside
1016 // UpdateSuspendScope::performDeferredWidgetTreeOperations() ? 1016 // UpdateSuspendScope::performDeferredWidgetTreeOperations() ?
1017 RefPtr<LocalFrame> protect(m_frame); 1017 RefPtr<LocalFrame> protect(m_frame);
1018 1018
1019 TRACE_EVENT_BEGIN0("blink", "Document::updateRenderTree"); 1019 TRACE_EVENT_BEGIN0("blink", "Document::updateRenderTree");
1020 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "UpdateRenderTree"); 1020 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "UpdateRenderTree");
1021 1021
1022 // FIXME: Remove m_styleRecalcElementCounter, we should just use the accessC ount() on the resolver.
1023 m_styleRecalcElementCounter = 0; 1022 m_styleRecalcElementCounter = 0;
1024 TRACE_EVENT_BEGIN1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Recalcul ateStyles", "frame", frame()); 1023 TRACE_EVENT_BEGIN1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Recalcul ateStyles", "frame", frame());
1025 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline.stack"), " CallStack", TRACE_EVENT_SCOPE_PROCESS, "stack", InspectorCallStackEvent::current CallStack()); 1024 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline.stack"), " CallStack", TRACE_EVENT_SCOPE_PROCESS, "stack", InspectorCallStackEvent::current CallStack());
1026 1025
1027 DocumentAnimations::updateOutdatedAnimationPlayersIfNeeded(*this); 1026 DocumentAnimations::updateOutdatedAnimationPlayersIfNeeded(*this);
1028 evaluateMediaQueryListIfNeeded(); 1027 evaluateMediaQueryListIfNeeded();
1029 updateDistributionIfNeeded(); 1028 updateDistributionIfNeeded();
1030 1029
1031 // FIXME: We should update style on our ancestor chain before proceeding 1030 // FIXME: We should update style on our ancestor chain before proceeding
1032 // however doing so currently causes several tests to crash, as LocalFrame:: setDocument calls Document::attach 1031 // however doing so currently causes several tests to crash, as LocalFrame:: setDocument calls Document::attach
(...skipping 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after
2612 using namespace blink; 2611 using namespace blink;
2613 void showLiveDocumentInstances() 2612 void showLiveDocumentInstances()
2614 { 2613 {
2615 WeakDocumentSet& set = liveDocumentSet(); 2614 WeakDocumentSet& set = liveDocumentSet();
2616 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 2615 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
2617 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 2616 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) {
2618 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); 2617 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data());
2619 } 2618 }
2620 } 2619 }
2621 #endif 2620 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/StyleResolver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698