| 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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 if (!ruleSet) | 711 if (!ruleSet) |
| 712 return false; | 712 return false; |
| 713 | 713 |
| 714 ElementRuleCollector collector(this, m_state); | 714 ElementRuleCollector collector(this, m_state); |
| 715 return collector.hasAnyMatchingRules(ruleSet); | 715 return collector.hasAnyMatchingRules(ruleSet); |
| 716 } | 716 } |
| 717 | 717 |
| 718 bool StyleResolver::canShareStyleWithControl(StyledElement* element) const | 718 bool StyleResolver::canShareStyleWithControl(StyledElement* element) const |
| 719 { | 719 { |
| 720 const State& state = m_state; | 720 const State& state = m_state; |
| 721 HTMLInputElement* thisInputElement = element->toInputElement(); | 721 Handle<HTMLInputElement> thisInputElement = element->toInputElement(); |
| 722 HTMLInputElement* otherInputElement = state.element()->toInputElement(); | 722 Handle<HTMLInputElement> otherInputElement = state.element()->toInputElement
(); |
| 723 | 723 |
| 724 if (!thisInputElement || !otherInputElement) | 724 if (!thisInputElement || !otherInputElement) |
| 725 return false; | 725 return false; |
| 726 | 726 |
| 727 if (thisInputElement->elementData() != otherInputElement->elementData()) { | 727 if (thisInputElement->elementData() != otherInputElement->elementData()) { |
| 728 if (thisInputElement->fastGetAttribute(typeAttr) != otherInputElement->f
astGetAttribute(typeAttr)) | 728 if (thisInputElement->fastGetAttribute(typeAttr) != otherInputElement->f
astGetAttribute(typeAttr)) |
| 729 return false; | 729 return false; |
| 730 if (thisInputElement->fastGetAttribute(readonlyAttr) != otherInputElemen
t->fastGetAttribute(readonlyAttr)) | 730 if (thisInputElement->fastGetAttribute(readonlyAttr) != otherInputElemen
t->fastGetAttribute(readonlyAttr)) |
| 731 return false; | 731 return false; |
| 732 } | 732 } |
| (...skipping 3944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4677 info.addMember(m_state, "state"); | 4677 info.addMember(m_state, "state"); |
| 4678 | 4678 |
| 4679 // FIXME: move this to a place where it would be called only once? | 4679 // FIXME: move this to a place where it would be called only once? |
| 4680 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle"); | 4680 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle"); |
| 4681 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl
e"); | 4681 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl
e"); |
| 4682 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle,"defaultPrintStyle")
; | 4682 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle,"defaultPrintStyle")
; |
| 4683 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo
urceStyle"); | 4683 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo
urceStyle"); |
| 4684 } | 4684 } |
| 4685 | 4685 |
| 4686 } // namespace WebCore | 4686 } // namespace WebCore |
| OLD | NEW |