Lines Matching refs:weight
249 if (pattern.weight() == current.weight()) { in matchStyleCSS3()
252 } else if (pattern.weight() < 400) { in matchStyleCSS3()
253 if (current.weight() <= pattern.weight()) { in matchStyleCSS3()
254 currentScore += 1000 - pattern.weight() + current.weight(); in matchStyleCSS3()
256 currentScore += 1000 - current.weight(); in matchStyleCSS3()
259 } else if (pattern.weight() <= 500) { in matchStyleCSS3()
260 if (current.weight() >= pattern.weight() && current.weight() <= 500) { in matchStyleCSS3()
261 currentScore += 1000 + pattern.weight() - current.weight(); in matchStyleCSS3()
262 } else if (current.weight() <= pattern.weight()) { in matchStyleCSS3()
263 currentScore += 500 + current.weight(); in matchStyleCSS3()
265 currentScore += 1000 - current.weight(); in matchStyleCSS3()
268 } else if (pattern.weight() > 500) { in matchStyleCSS3()
269 if (current.weight() > pattern.weight()) { in matchStyleCSS3()
270 currentScore += 1000 + pattern.weight() - current.weight(); in matchStyleCSS3()
272 currentScore += current.weight(); in matchStyleCSS3()