OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
4 * All rights reserved. | 4 * All rights reserved. |
5 * Copyright (C) 2013 Google Inc. All rights reserved. | 5 * Copyright (C) 2013 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 18 matching lines...) Expand all Loading... |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 class ContainerNode; | 32 class ContainerNode; |
33 | 33 |
34 class MatchRequest { | 34 class MatchRequest { |
35 STACK_ALLOCATED(); | 35 STACK_ALLOCATED(); |
36 | 36 |
37 public: | 37 public: |
38 MatchRequest(RuleSet* rule_set, | 38 MatchRequest(RuleSet* rule_set, |
39 const ContainerNode* scope = 0, | 39 const ContainerNode* scope = nullptr, |
40 const CSSStyleSheet* css_sheet = 0, | 40 const CSSStyleSheet* css_sheet = nullptr, |
41 unsigned style_sheet_index = 0) | 41 unsigned style_sheet_index = 0) |
42 : rule_set(rule_set), | 42 : rule_set(rule_set), |
43 scope(scope), | 43 scope(scope), |
44 style_sheet(css_sheet), | 44 style_sheet(css_sheet), |
45 style_sheet_index(style_sheet_index) { | 45 style_sheet_index(style_sheet_index) { |
46 // Now that we're about to read from the RuleSet, we're done adding more | 46 // Now that we're about to read from the RuleSet, we're done adding more |
47 // rules to the set and we should make sure it's compacted. | 47 // rules to the set and we should make sure it's compacted. |
48 rule_set->CompactRulesIfNeeded(); | 48 rule_set->CompactRulesIfNeeded(); |
49 } | 49 } |
50 | 50 |
51 Member<const RuleSet> rule_set; | 51 Member<const RuleSet> rule_set; |
52 Member<const ContainerNode> scope; | 52 Member<const ContainerNode> scope; |
53 Member<const CSSStyleSheet> style_sheet; | 53 Member<const CSSStyleSheet> style_sheet; |
54 const unsigned style_sheet_index; | 54 const unsigned style_sheet_index; |
55 }; | 55 }; |
56 | 56 |
57 } // namespace blink | 57 } // namespace blink |
58 | 58 |
59 #endif // MatchRequest_h | 59 #endif // MatchRequest_h |
OLD | NEW |