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

Side by Side Diff: Source/core/dom/shadow/InsertionPoint.h

Issue 16599003: :hover style not applied on hover if its display property is different from original style's (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch (fixed test that was expected to fail and is now passing) Created 7 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
« no previous file with comments | « Source/core/dom/Text.cpp ('k') | Source/core/dom/shadow/InsertionPoint.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 PassRefPtr<NodeList> getDistributedNodes() const; 65 PassRefPtr<NodeList> getDistributedNodes() const;
66 66
67 virtual MatchType matchTypeFor(Node*) { return AlwaysMatches; } 67 virtual MatchType matchTypeFor(Node*) { return AlwaysMatches; }
68 virtual const CSSSelectorList& selectorList() { return emptySelectorList(); } 68 virtual const CSSSelectorList& selectorList() { return emptySelectorList(); }
69 virtual Type insertionPointType() const = 0; 69 virtual Type insertionPointType() const = 0;
70 virtual bool canAffectSelector() const { return false; } 70 virtual bool canAffectSelector() const { return false; }
71 71
72 bool resetStyleInheritance() const; 72 bool resetStyleInheritance() const;
73 void setResetStyleInheritance(bool); 73 void setResetStyleInheritance(bool);
74 74
75 virtual void attach(); 75 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
76 virtual void detach(); 76 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
77 77
78 bool shouldUseFallbackElements() const; 78 bool shouldUseFallbackElements() const;
79 79
80 size_t indexOf(Node* node) const { return m_distribution.find(node); } 80 size_t indexOf(Node* node) const { return m_distribution.find(node); }
81 bool contains(const Node*) const; 81 bool contains(const Node*) const;
82 size_t size() const { return m_distribution.size(); } 82 size_t size() const { return m_distribution.size(); }
83 Node* at(size_t index) const { return m_distribution.at(index).get(); } 83 Node* at(size_t index) const { return m_distribution.at(index).get(); }
84 Node* first() const { return m_distribution.isEmpty() ? 0 : m_distribution.f irst().get(); } 84 Node* first() const { return m_distribution.isEmpty() ? 0 : m_distribution.f irst().get(); }
85 Node* last() const { return m_distribution.isEmpty() ? 0 : m_distribution.la st().get(); } 85 Node* last() const { return m_distribution.isEmpty() ? 0 : m_distribution.la st().get(); }
86 Node* nextTo(const Node* node) const { return m_distribution.nextTo(node); } 86 Node* nextTo(const Node* node) const { return m_distribution.nextTo(node); }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 return 0; 159 return 0;
160 } 160 }
161 161
162 InsertionPoint* resolveReprojection(const Node*); 162 InsertionPoint* resolveReprojection(const Node*);
163 163
164 void collectInsertionPointsWhereNodeIsDistributed(const Node*, Vector<InsertionP oint*, 8>& results); 164 void collectInsertionPointsWhereNodeIsDistributed(const Node*, Vector<InsertionP oint*, 8>& results);
165 165
166 } // namespace WebCore 166 } // namespace WebCore
167 167
168 #endif // InsertionPoint_h 168 #endif // InsertionPoint_h
OLDNEW
« no previous file with comments | « Source/core/dom/Text.cpp ('k') | Source/core/dom/shadow/InsertionPoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698