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

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

Issue 2559613002: Removed resolverChanged(). (Closed)
Patch Set: Rebased Created 4 years 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/html/LinkStyle.h" 5 #include "core/html/LinkStyle.h"
6 6
7 #include "core/css/StyleSheetContents.h" 7 #include "core/css/StyleSheetContents.h"
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 #include "core/frame/SubresourceIntegrity.h" 9 #include "core/frame/SubresourceIntegrity.h"
10 #include "core/frame/csp/ContentSecurityPolicy.h" 10 #include "core/frame/csp/ContentSecurityPolicy.h"
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 } 383 }
384 384
385 if (!m_owner->loadLink(type, as, media, m_owner->referrerPolicy(), 385 if (!m_owner->loadLink(type, as, media, m_owner->referrerPolicy(),
386 builder.url())) 386 builder.url()))
387 return; 387 return;
388 388
389 if (loadStylesheetIfNeeded(builder, type) == NotNeeded && m_sheet) { 389 if (loadStylesheetIfNeeded(builder, type) == NotNeeded && m_sheet) {
390 // we no longer contain a stylesheet, e.g. perhaps rel or type was changed 390 // we no longer contain a stylesheet, e.g. perhaps rel or type was changed
391 clearSheet(); 391 clearSheet();
392 document().styleEngine().setNeedsActiveStyleUpdate(m_owner->treeScope()); 392 document().styleEngine().setNeedsActiveStyleUpdate(m_owner->treeScope());
393 // TODO(rune@opera.com): resolverChanged() can be removed once stylesheet
394 // updates are async. https://crbug.com/567021
395 document().styleEngine().resolverChanged(FullStyleUpdate);
396 } 393 }
397 } 394 }
398 395
399 void LinkStyle::setSheetTitle( 396 void LinkStyle::setSheetTitle(
400 const String& title, 397 const String& title,
401 StyleEngine::ActiveSheetsUpdate updateActiveSheets) { 398 StyleEngine::ActiveSheetsUpdate updateActiveSheets) {
402 if (!m_owner->isInDocumentTree() || !m_owner->relAttribute().isStyleSheet()) 399 if (!m_owner->isInDocumentTree() || !m_owner->relAttribute().isStyleSheet())
403 return; 400 return;
404 401
405 if (m_sheet) 402 if (m_sheet)
(...skipping 17 matching lines...) Expand all
423 removePendingSheet(); 420 removePendingSheet();
424 } 421 }
425 422
426 DEFINE_TRACE(LinkStyle) { 423 DEFINE_TRACE(LinkStyle) {
427 visitor->trace(m_sheet); 424 visitor->trace(m_sheet);
428 LinkResource::trace(visitor); 425 LinkResource::trace(visitor);
429 ResourceOwner<StyleSheetResource>::trace(visitor); 426 ResourceOwner<StyleSheetResource>::trace(visitor);
430 } 427 }
431 428
432 } // namespace blink 429 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698