| 141 | } |
| 142 | |
| 143 | inline bool shouldReplaceDeclaration(const CSSStyleDeclaration& existing, const CSSStyleDeclaration& newDeclaration) { |
| 144 | if (newDeclaration.priority < existing.priority) { |
| 145 | return false; |
| 146 | } |
| 147 | if (newDeclaration.priority > existing.priority) { |
| 148 | return true; |
| 149 | } |
| 150 | |
| 151 | return newDeclaration.order > existing.order; |
| 152 | } |
| 153 | |
| 154 | void insertDeclarationIfNeeded(const CSSStyleDeclaration& declaration, |
| 155 | FlatMap<AttributeId, const CSSStyleDeclaration*>& bestStyleDeclarationByKey) { |
no outgoing calls
no test coverage detected