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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.h

Issue 2613213002: Support Style Sharing for Shadow DOM V1 (Closed)
Patch Set: update Created 3 years, 11 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. 2 * Copyright (C) 2013 Google, Inc.
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
5 * All rights reserved. 5 * 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 // Only used when we're collecting stats on styles. 61 // Only used when we're collecting stats on styles.
62 bool documentContainsValidCandidate() const; 62 bool documentContainsValidCandidate() const;
63 63
64 bool classNamesAffectedByRules(const SpaceSplitString&) const; 64 bool classNamesAffectedByRules(const SpaceSplitString&) const;
65 65
66 bool canShareStyleWithElement(Element& candidate) const; 66 bool canShareStyleWithElement(Element& candidate) const;
67 bool canShareStyleWithControl(Element& candidate) const; 67 bool canShareStyleWithControl(Element& candidate) const;
68 bool sharingCandidateHasIdenticalStyleAffectingAttributes( 68 bool sharingCandidateHasIdenticalStyleAffectingAttributes(
69 Element& candidate) const; 69 Element& candidate) const;
70 bool sharingCandidateCanShareHostStyles(Element& candidate) const; 70 bool sharingCandidateCanShareHostStyles(Element& candidate) const;
71 bool sharingCandidateAssignedToSameSlot(Element& candidate) const;
71 bool sharingCandidateDistributedToSameInsertionPoint( 72 bool sharingCandidateDistributedToSameInsertionPoint(
72 Element& candidate) const; 73 Element& candidate) const;
73 bool matchesRuleSet(RuleSet*); 74 bool matchesRuleSet(RuleSet*);
74 75
75 Element& element() const { return *m_context.element(); } 76 Element& element() const { return *m_context.element(); }
76 Document& document() const { return element().document(); } 77 Document& document() const { return element().document(); }
77 78
78 bool m_elementAffectedByClassRules; 79 bool m_elementAffectedByClassRules;
79 const RuleFeatureSet& m_features; 80 const RuleFeatureSet& m_features;
80 Member<RuleSet> m_siblingRuleSet; 81 Member<RuleSet> m_siblingRuleSet;
81 Member<RuleSet> m_uncommonAttributeRuleSet; 82 Member<RuleSet> m_uncommonAttributeRuleSet;
82 Member<StyleResolver> m_styleResolver; 83 Member<StyleResolver> m_styleResolver;
83 const ElementResolveContext& m_context; 84 const ElementResolveContext& m_context;
84 85
85 friend class SharedStyleFinderTest; 86 friend class SharedStyleFinderTest;
86 }; 87 };
87 88
88 } // namespace blink 89 } // namespace blink
89 90
90 #endif // SharedStyleFinder_h 91 #endif // SharedStyleFinder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698