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

Side by Side Diff: sky/engine/core/dom/StyleSheetCandidate.h

Issue 696413002: Remove HTMLLinkElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/dom/StyleEngine.cpp ('k') | sky/engine/core/dom/StyleSheetCandidate.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) 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 23 matching lines...) Expand all
34 namespace blink { 34 namespace blink {
35 35
36 class Document; 36 class Document;
37 class Node; 37 class Node;
38 class StyleSheet; 38 class StyleSheet;
39 39
40 class StyleSheetCandidate { 40 class StyleSheetCandidate {
41 STACK_ALLOCATED(); 41 STACK_ALLOCATED();
42 public: 42 public:
43 enum Type { 43 enum Type {
44 HTMLLink,
45 HTMLStyle, 44 HTMLStyle,
46 }; 45 };
47 46
48 StyleSheetCandidate(Node& node) 47 StyleSheetCandidate(Node& node)
49 : m_node(node) 48 : m_node(node)
50 , m_type(typeOf(node)) 49 , m_type(typeOf(node))
51 { } 50 { }
52 51
53 bool isImport() const;
54 bool canBeActivated() const; 52 bool canBeActivated() const;
55 53
56 StyleSheet* sheet() const; 54 StyleSheet* sheet() const;
57 Document* importedDocument() const;
58 55
59 private: 56 private:
60 Node& node() const { return *m_node; } 57 Node& node() const { return *m_node; }
61 58
62 static Type typeOf(Node&); 59 static Type typeOf(Node&);
63 60
64 RawPtr<Node> m_node; 61 RawPtr<Node> m_node;
65 Type m_type; 62 Type m_type;
66 }; 63 };
67 64
68 } 65 }
69 66
70 #endif 67 #endif
71 68
OLDNEW
« no previous file with comments | « sky/engine/core/dom/StyleEngine.cpp ('k') | sky/engine/core/dom/StyleSheetCandidate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698