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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLLinkElement.cpp

Issue 2641263002: Use Unthrottled instead of DOMManipulation in HTMLLinkElement/HTMLStyleElement (Closed)
Patch Set: Created 3 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 | « no previous file | third_party/WebKit/Source/core/html/HTMLStyleElement.cpp » ('j') | 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 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) 7 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com)
8 * Copyright (C) 2011 Google Inc. All rights reserved. 8 * Copyright (C) 2011 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 void HTMLLinkElement::dispatchPendingEvent( 284 void HTMLLinkElement::dispatchPendingEvent(
285 std::unique_ptr<IncrementLoadEventDelayCount>) { 285 std::unique_ptr<IncrementLoadEventDelayCount>) {
286 DCHECK(m_link); 286 DCHECK(m_link);
287 if (m_link->hasLoaded()) 287 if (m_link->hasLoaded())
288 linkLoaded(); 288 linkLoaded();
289 else 289 else
290 linkLoadingErrored(); 290 linkLoadingErrored();
291 } 291 }
292 292
293 void HTMLLinkElement::scheduleEvent() { 293 void HTMLLinkElement::scheduleEvent() {
294 TaskRunnerHelper::get(TaskType::DOMManipulation, &document()) 294 // TODO(hiroshige): Use DOMManipulation task runner. Unthrottled
295 // is temporarily used for fixing https://crbug.com/649942 only on M-56.
296 TaskRunnerHelper::get(TaskType::Unthrottled, &document())
295 ->postTask( 297 ->postTask(
296 BLINK_FROM_HERE, 298 BLINK_FROM_HERE,
297 WTF::bind(&HTMLLinkElement::dispatchPendingEvent, 299 WTF::bind(&HTMLLinkElement::dispatchPendingEvent,
298 wrapPersistent(this), 300 wrapPersistent(this),
299 passed(IncrementLoadEventDelayCount::create(document())))); 301 passed(IncrementLoadEventDelayCount::create(document()))));
300 } 302 }
301 303
302 void HTMLLinkElement::startLoadingDynamicSheet() { 304 void HTMLLinkElement::startLoadingDynamicSheet() {
303 DCHECK(linkStyle()); 305 DCHECK(linkStyle());
304 linkStyle()->startLoadingDynamicSheet(); 306 linkStyle()->startLoadingDynamicSheet();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 LinkLoaderClient::trace(visitor); 362 LinkLoaderClient::trace(visitor);
361 DOMTokenListObserver::trace(visitor); 363 DOMTokenListObserver::trace(visitor);
362 } 364 }
363 365
364 DEFINE_TRACE_WRAPPERS(HTMLLinkElement) { 366 DEFINE_TRACE_WRAPPERS(HTMLLinkElement) {
365 visitor->traceWrappers(m_relList); 367 visitor->traceWrappers(m_relList);
366 HTMLElement::traceWrappers(visitor); 368 HTMLElement::traceWrappers(visitor);
367 } 369 }
368 370
369 } // namespace blink 371 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLStyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698