OLD | NEW |
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 Loading... |
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 |
OLD | NEW |