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

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

Issue 1165233002: Apply :target styling even if fragment scrolling was skipped. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
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 2854 matching lines...) Expand 10 before | Expand all | Expand 10 after
2865 } 2865 }
2866 2866
2867 void Document::didLoadAllScriptBlockingResources() 2867 void Document::didLoadAllScriptBlockingResources()
2868 { 2868 {
2869 m_executeScriptsWaitingForResourcesTimer.startOneShot(0, FROM_HERE); 2869 m_executeScriptsWaitingForResourcesTimer.startOneShot(0, FROM_HERE);
2870 2870
2871 if (frame()) 2871 if (frame())
2872 frame()->loader().client()->didRemoveAllPendingStylesheet(); 2872 frame()->loader().client()->didRemoveAllPendingStylesheet();
2873 2873
2874 if (m_gotoAnchorNeededAfterStylesheetsLoad && view()) 2874 if (m_gotoAnchorNeededAfterStylesheetsLoad && view())
2875 view()->scrollToFragment(m_url); 2875 view()->processUrlFragment(m_url);
2876 } 2876 }
2877 2877
2878 void Document::executeScriptsWaitingForResourcesTimerFired(Timer<Document>*) 2878 void Document::executeScriptsWaitingForResourcesTimerFired(Timer<Document>*)
2879 { 2879 {
2880 if (!isRenderingReady()) 2880 if (!isRenderingReady())
2881 return; 2881 return;
2882 if (ScriptableDocumentParser* parser = scriptableDocumentParser()) 2882 if (ScriptableDocumentParser* parser = scriptableDocumentParser())
2883 parser->executeScriptsWaitingForResources(); 2883 parser->executeScriptsWaitingForResources();
2884 } 2884 }
2885 2885
(...skipping 2824 matching lines...) Expand 10 before | Expand all | Expand 10 after
5710 #ifndef NDEBUG 5710 #ifndef NDEBUG
5711 using namespace blink; 5711 using namespace blink;
5712 void showLiveDocumentInstances() 5712 void showLiveDocumentInstances()
5713 { 5713 {
5714 WeakDocumentSet& set = liveDocumentSet(); 5714 WeakDocumentSet& set = liveDocumentSet();
5715 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 5715 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
5716 for (Document* document : set) 5716 for (Document* document : set)
5717 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data()); 5717 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data());
5718 } 5718 }
5719 #endif 5719 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698