| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. |
| 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 if (candidate.tagQName() != element().tagQName()) | 205 if (candidate.tagQName() != element().tagQName()) |
| 206 return false; | 206 return false; |
| 207 if (candidate.inlineStyle()) | 207 if (candidate.inlineStyle()) |
| 208 return false; | 208 return false; |
| 209 if (candidate.needsStyleRecalc()) | 209 if (candidate.needsStyleRecalc()) |
| 210 return false; | 210 return false; |
| 211 if (candidate.isSVGElement() && toSVGElement(candidate).animatedSMILStylePro
perties()) | 211 if (candidate.isSVGElement() && toSVGElement(candidate).animatedSMILStylePro
perties()) |
| 212 return false; | 212 return false; |
| 213 if (candidate.isLink() != element().isLink()) | 213 if (candidate.isLink() != element().isLink()) |
| 214 return false; | 214 return false; |
| 215 if (candidate.hovered() != element().hovered()) | |
| 216 return false; | |
| 217 if (candidate.active() != element().active()) | |
| 218 return false; | |
| 219 if (candidate.focused() != element().focused()) | |
| 220 return false; | |
| 221 if (candidate.shadowPseudoId() != element().shadowPseudoId()) | 215 if (candidate.shadowPseudoId() != element().shadowPseudoId()) |
| 222 return false; | 216 return false; |
| 223 if (candidate == document().cssTarget()) | |
| 224 return false; | |
| 225 if (!sharingCandidateHasIdenticalStyleAffectingAttributes(candidate)) | 217 if (!sharingCandidateHasIdenticalStyleAffectingAttributes(candidate)) |
| 226 return false; | 218 return false; |
| 227 if (candidate.additionalPresentationAttributeStyle() != element().additional
PresentationAttributeStyle()) | 219 if (candidate.additionalPresentationAttributeStyle() != element().additional
PresentationAttributeStyle()) |
| 228 return false; | 220 return false; |
| 229 if (candidate.hasID() && m_features.hasSelectorForId(candidate.idForStyleRes
olution())) | 221 if (candidate.hasID() && m_features.hasSelectorForId(candidate.idForStyleRes
olution())) |
| 230 return false; | 222 return false; |
| 231 if (candidate.hasScopedHTMLStyleChild()) | 223 if (candidate.hasScopedHTMLStyleChild()) |
| 232 return false; | 224 return false; |
| 233 if (candidate.shadow() && candidate.shadow()->containsActiveStyles() && !sha
ringCandidateShadowHasSharedStyleSheetContents(candidate)) | 225 if (candidate.shadow() && candidate.shadow()->containsActiveStyles() && !sha
ringCandidateShadowHasSharedStyleSheetContents(candidate)) |
| 234 return false; | 226 return false; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 // Tracking child index requires unique style for each node. This may get se
t by the sibling rule match above. | 333 // Tracking child index requires unique style for each node. This may get se
t by the sibling rule match above. |
| 342 if (!element().parentElementOrShadowRoot()->childrenSupportStyleSharing()) { | 334 if (!element().parentElementOrShadowRoot()->childrenSupportStyleSharing()) { |
| 343 INCREMENT_STYLE_STATS_COUNTER(m_styleResolver, sharedStyleRejectedByPare
nt); | 335 INCREMENT_STYLE_STATS_COUNTER(m_styleResolver, sharedStyleRejectedByPare
nt); |
| 344 return 0; | 336 return 0; |
| 345 } | 337 } |
| 346 | 338 |
| 347 return shareElement->renderStyle(); | 339 return shareElement->renderStyle(); |
| 348 } | 340 } |
| 349 | 341 |
| 350 } | 342 } |
| OLD | NEW |