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

Side by Side Diff: Source/core/page/InjectedStyleSheets.cpp

Issue 975933002: Return reference from styleEngine() accessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 | « Source/core/layout/svg/LayoutSVGInlineText.cpp ('k') | Source/core/page/Page.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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright 2014 The Chromium Authors. All rights reserved. 3 * Copyright 2014 The Chromium Authors. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 invalidateInjectedStyleSheetCacheInAllFrames(); 48 invalidateInjectedStyleSheetCacheInAllFrames();
49 } 49 }
50 50
51 void InjectedStyleSheets::invalidateInjectedStyleSheetCacheInAllFrames() 51 void InjectedStyleSheets::invalidateInjectedStyleSheetCacheInAllFrames()
52 { 52 {
53 // Clear our cached sheets and have them just reparse. 53 // Clear our cached sheets and have them just reparse.
54 const HashSet<Page*>& pages = Page::ordinaryPages(); 54 const HashSet<Page*>& pages = Page::ordinaryPages();
55 for (const Page* page : pages) { 55 for (const Page* page : pages) {
56 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().trav erseNext()) { 56 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().trav erseNext()) {
57 if (frame->isLocalFrame()) 57 if (frame->isLocalFrame())
58 toLocalFrame(frame)->document()->styleEngine()->invalidateInject edStyleSheetCache(); 58 toLocalFrame(frame)->document()->styleEngine().invalidateInjecte dStyleSheetCache();
59 } 59 }
60 } 60 }
61 } 61 }
62 62
63 } // namespace blink 63 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGInlineText.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698