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

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

Issue 1793933002: Don't trigger a link resource fetch on media change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test and made mediaChanged() virtual Created 4 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
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 * Copyright (C) 2003, 2008, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2008, 2010 Apple Inc. All rights reserved.
5 * Copyright (C) 2011 Google Inc. All rights reserved. 5 * Copyright (C) 2011 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LinkStyle); 61 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LinkStyle);
62 public: 62 public:
63 static PassOwnPtrWillBeRawPtr<LinkStyle> create(HTMLLinkElement* owner); 63 static PassOwnPtrWillBeRawPtr<LinkStyle> create(HTMLLinkElement* owner);
64 64
65 explicit LinkStyle(HTMLLinkElement* owner); 65 explicit LinkStyle(HTMLLinkElement* owner);
66 ~LinkStyle() override; 66 ~LinkStyle() override;
67 67
68 LinkResourceType type() const override { return Style; } 68 LinkResourceType type() const override { return Style; }
69 void process() override; 69 void process() override;
70 void ownerRemoved() override; 70 void ownerRemoved() override;
71 void mediaChanged() override;
71 bool hasLoaded() const override { return m_loadedSheet; } 72 bool hasLoaded() const override { return m_loadedSheet; }
72 DECLARE_VIRTUAL_TRACE(); 73 DECLARE_VIRTUAL_TRACE();
73 74
74 void startLoadingDynamicSheet(); 75 void startLoadingDynamicSheet();
75 void notifyLoadedSheetAndAllCriticalSubresources(Node::LoadedSheetErrorStatu s); 76 void notifyLoadedSheetAndAllCriticalSubresources(Node::LoadedSheetErrorStatu s);
76 bool sheetLoaded(); 77 bool sheetLoaded();
77 78
78 void setDisabledState(bool); 79 void setDisabledState(bool);
79 void setSheetTitle(const String&); 80 void setSheetTitle(const String&);
80 81
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 RawPtrWillBeMember<RelList> m_relList; 229 RawPtrWillBeMember<RelList> m_relList;
229 LinkRelAttribute m_relAttribute; 230 LinkRelAttribute m_relAttribute;
230 231
231 bool m_createdByParser; 232 bool m_createdByParser;
232 bool m_isInShadowTree; 233 bool m_isInShadowTree;
233 }; 234 };
234 235
235 } // namespace blink 236 } // namespace blink
236 237
237 #endif // HTMLLinkElement_h 238 #endif // HTMLLinkElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698