Lines Matching refs:weight
254 if (pattern.weight() == current.weight()) { in matchStyleCSS3()
257 } else if (pattern.weight() < 400) { in matchStyleCSS3()
258 if (current.weight() <= pattern.weight()) { in matchStyleCSS3()
259 currentScore += 1000 - pattern.weight() + current.weight(); in matchStyleCSS3()
261 currentScore += 1000 - current.weight(); in matchStyleCSS3()
264 } else if (pattern.weight() <= 500) { in matchStyleCSS3()
265 if (current.weight() >= pattern.weight() && current.weight() <= 500) { in matchStyleCSS3()
266 currentScore += 1000 + pattern.weight() - current.weight(); in matchStyleCSS3()
267 } else if (current.weight() <= pattern.weight()) { in matchStyleCSS3()
268 currentScore += 500 + current.weight(); in matchStyleCSS3()
270 currentScore += 1000 - current.weight(); in matchStyleCSS3()
273 } else if (pattern.weight() > 500) { in matchStyleCSS3()
274 if (current.weight() > pattern.weight()) { in matchStyleCSS3()
275 currentScore += 1000 + pattern.weight() - current.weight(); in matchStyleCSS3()
277 currentScore += current.weight(); in matchStyleCSS3()