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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleSheetCandidate.h

Issue 2079303002: Move preferred stylesheet set out of active sheet update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 StyleSheetCandidate(Node& node) 50 StyleSheetCandidate(Node& node)
51 : m_node(node) 51 : m_node(node)
52 , m_type(typeOf(node)) 52 , m_type(typeOf(node))
53 { } 53 { }
54 54
55 bool isXSL() const; 55 bool isXSL() const;
56 bool isImport() const; 56 bool isImport() const;
57 bool isAlternate() const; 57 bool isAlternate() const;
58 bool isEnabledViaScript() const; 58 bool isEnabledViaScript() const;
59 bool isEnabledAndLoading() const; 59 bool isEnabledAndLoading() const;
60 bool hasPreferrableName() const;
61 bool canBeActivated(const String& currentPreferrableName) const; 60 bool canBeActivated(const String& currentPreferrableName) const;
62 bool isCSSStyle() const; 61 bool isCSSStyle() const;
63 62
64 StyleSheet* sheet() const; 63 StyleSheet* sheet() const;
65 AtomicString title() const; 64 AtomicString title() const;
66 Document* importedDocument() const; 65 Document* importedDocument() const;
67 66
68 private: 67 private:
69 bool isElement() const { return m_type != Pi; } 68 bool isElement() const { return m_type != Pi; }
70 bool isHTMLLink() const { return m_type == HTMLLink; } 69 bool isHTMLLink() const { return m_type == HTMLLink; }
71 Node& node() const { return *m_node; } 70 Node& node() const { return *m_node; }
72 71
73 static Type typeOf(Node&); 72 static Type typeOf(Node&);
74 73
75 Member<Node> m_node; 74 Member<Node> m_node;
76 Type m_type; 75 Type m_type;
77 }; 76 };
78 77
79 } // namespace blink 78 } // namespace blink
80 79
81 #endif 80 #endif
82 81
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698