| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. |
| 7 * All rights reserved. | 7 * All rights reserved. |
| 8 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 8 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 9 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 9 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 10 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 break; | 787 break; |
| 788 } | 788 } |
| 789 nextContent = ContentData::create(quoteType); | 789 nextContent = ContentData::create(quoteType); |
| 790 } else { | 790 } else { |
| 791 String string; | 791 String string; |
| 792 if (item->isFunctionValue()) { | 792 if (item->isFunctionValue()) { |
| 793 const CSSFunctionValue* functionValue = toCSSFunctionValue(item.get()); | 793 const CSSFunctionValue* functionValue = toCSSFunctionValue(item.get()); |
| 794 DCHECK_EQ(functionValue->functionType(), CSSValueAttr); | 794 DCHECK_EQ(functionValue->functionType(), CSSValueAttr); |
| 795 // FIXME: Can a namespace be specified for an attr(foo)? | 795 // FIXME: Can a namespace be specified for an attr(foo)? |
| 796 if (state.style()->styleType() == PseudoIdNone) | 796 if (state.style()->styleType() == PseudoIdNone) |
| 797 state.style()->setUnique(); | 797 state.style()->setUnique(true); |
| 798 else | 798 else |
| 799 state.parentStyle()->setUnique(); | 799 state.parentStyle()->setUnique(true); |
| 800 QualifiedName attr( | 800 QualifiedName attr( |
| 801 nullAtom, toCSSCustomIdentValue(functionValue->item(0)).value(), | 801 nullAtom, toCSSCustomIdentValue(functionValue->item(0)).value(), |
| 802 nullAtom); | 802 nullAtom); |
| 803 const AtomicString& value = state.element()->getAttribute(attr); | 803 const AtomicString& value = state.element()->getAttribute(attr); |
| 804 string = value.isNull() ? emptyString : value.getString(); | 804 string = value.isNull() ? emptyString : value.getString(); |
| 805 } else { | 805 } else { |
| 806 string = toCSSStringValue(*item).value(); | 806 string = toCSSStringValue(*item).value(); |
| 807 } | 807 } |
| 808 if (prevContent && prevContent->isText()) { | 808 if (prevContent && prevContent->isText()) { |
| 809 TextContentData* textContent = toTextContentData(prevContent); | 809 TextContentData* textContent = toTextContentData(prevContent); |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 state.style()->setCaretColor( | 1029 state.style()->setCaretColor( |
| 1030 StyleBuilderConverter::convertStyleAutoColor(state, value)); | 1030 StyleBuilderConverter::convertStyleAutoColor(state, value)); |
| 1031 } | 1031 } |
| 1032 if (state.applyPropertyToVisitedLinkStyle()) { | 1032 if (state.applyPropertyToVisitedLinkStyle()) { |
| 1033 state.style()->setVisitedLinkCaretColor( | 1033 state.style()->setVisitedLinkCaretColor( |
| 1034 StyleBuilderConverter::convertStyleAutoColor(state, value, true)); | 1034 StyleBuilderConverter::convertStyleAutoColor(state, value, true)); |
| 1035 } | 1035 } |
| 1036 } | 1036 } |
| 1037 | 1037 |
| 1038 } // namespace blink | 1038 } // namespace blink |
| OLD | NEW |