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

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

Issue 2943983003: chrome/blink: Add functionality for in-product help for media elements. (Closed)
Patch Set: addressed comments Created 3 years, 5 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 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 2286 matching lines...) Expand 10 before | Expand all | Expand 10 after
2297 // beginFrame? This will catch the first layout in a page that does lots 2297 // beginFrame? This will catch the first layout in a page that does lots
2298 // of layout thrashing even though that layout might not be followed by 2298 // of layout thrashing even though that layout might not be followed by
2299 // a paint for many seconds. 2299 // a paint for many seconds.
2300 if (IsRenderingReady() && body() && 2300 if (IsRenderingReady() && body() &&
2301 !GetStyleEngine().HasPendingScriptBlockingSheets()) { 2301 !GetStyleEngine().HasPendingScriptBlockingSheets()) {
2302 if (!document_timing_.FirstLayout()) 2302 if (!document_timing_.FirstLayout())
2303 document_timing_.MarkFirstLayout(); 2303 document_timing_.MarkFirstLayout();
2304 } 2304 }
2305 2305
2306 root_scroller_controller_->DidUpdateLayout(); 2306 root_scroller_controller_->DidUpdateLayout();
2307 if (GetFrame())
2308 GetFrame()->LayoutUpdated();
2307 } 2309 }
2308 2310
2309 void Document::ClearFocusedElementSoon() { 2311 void Document::ClearFocusedElementSoon() {
2310 if (!clear_focused_element_timer_.IsActive()) 2312 if (!clear_focused_element_timer_.IsActive())
2311 clear_focused_element_timer_.StartOneShot(0, BLINK_FROM_HERE); 2313 clear_focused_element_timer_.StartOneShot(0, BLINK_FROM_HERE);
2312 } 2314 }
2313 2315
2314 void Document::ClearFocusedElementTimerFired(TimerBase*) { 2316 void Document::ClearFocusedElementTimerFired(TimerBase*) {
2315 UpdateStyleAndLayoutTree(); 2317 UpdateStyleAndLayoutTree();
2316 2318
(...skipping 4583 matching lines...) Expand 10 before | Expand all | Expand 10 after
6900 } 6902 }
6901 6903
6902 void showLiveDocumentInstances() { 6904 void showLiveDocumentInstances() {
6903 WeakDocumentSet& set = liveDocumentSet(); 6905 WeakDocumentSet& set = liveDocumentSet();
6904 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6906 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6905 for (blink::Document* document : set) 6907 for (blink::Document* document : set)
6906 fprintf(stderr, "- Document %p URL: %s\n", document, 6908 fprintf(stderr, "- Document %p URL: %s\n", document,
6907 document->Url().GetString().Utf8().data()); 6909 document->Url().GetString().Utf8().data());
6908 } 6910 }
6909 #endif 6911 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698