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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 ContentData* firstContent = nullptr; | 782 ContentData* firstContent = nullptr; |
783 ContentData* prevContent = nullptr; | 783 ContentData* prevContent = nullptr; |
784 for (auto& item : toCSSValueList(value)) { | 784 for (auto& item : toCSSValueList(value)) { |
785 ContentData* nextContent = nullptr; | 785 ContentData* nextContent = nullptr; |
786 if (item->isImageGeneratorValue() || item->isImageSetValue() || | 786 if (item->isImageGeneratorValue() || item->isImageSetValue() || |
787 item->isImageValue()) { | 787 item->isImageValue()) { |
788 nextContent = | 788 nextContent = |
789 ContentData::create(state.styleImage(CSSPropertyContent, *item)); | 789 ContentData::create(state.styleImage(CSSPropertyContent, *item)); |
790 } else if (item->isCounterValue()) { | 790 } else if (item->isCounterValue()) { |
791 const CSSCounterValue* counterValue = toCSSCounterValue(item.get()); | 791 const CSSCounterValue* counterValue = toCSSCounterValue(item.get()); |
792 EListStyleType listStyleType = NoneListStyle; | 792 EListStyleType listStyleType = EListStyleType::NoneListStyle; |
793 CSSValueID listStyleIdent = counterValue->listStyle(); | 793 CSSValueID listStyleIdent = counterValue->listStyle(); |
794 if (listStyleIdent != CSSValueNone) | 794 if (listStyleIdent != CSSValueNone) |
795 listStyleType = | 795 listStyleType = |
796 static_cast<EListStyleType>(listStyleIdent - CSSValueDisc); | 796 static_cast<EListStyleType>(listStyleIdent - CSSValueDisc); |
797 std::unique_ptr<CounterContent> counter = wrapUnique(new CounterContent( | 797 std::unique_ptr<CounterContent> counter = wrapUnique(new CounterContent( |
798 AtomicString(counterValue->identifier()), listStyleType, | 798 AtomicString(counterValue->identifier()), listStyleType, |
799 AtomicString(counterValue->separator()))); | 799 AtomicString(counterValue->separator()))); |
800 nextContent = ContentData::create(std::move(counter)); | 800 nextContent = ContentData::create(std::move(counter)); |
801 } else if (item->isIdentifierValue()) { | 801 } else if (item->isIdentifierValue()) { |
802 QuoteType quoteType; | 802 QuoteType quoteType; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1032 } | 1032 } |
1033 } | 1033 } |
1034 | 1034 |
1035 void StyleBuilderFunctions::applyInheritCSSPropertyPosition( | 1035 void StyleBuilderFunctions::applyInheritCSSPropertyPosition( |
1036 StyleResolverState& state) { | 1036 StyleResolverState& state) { |
1037 if (!state.parentNode()->isDocumentNode()) | 1037 if (!state.parentNode()->isDocumentNode()) |
1038 state.style()->setPosition(state.parentStyle()->position()); | 1038 state.style()->setPosition(state.parentStyle()->position()); |
1039 } | 1039 } |
1040 | 1040 |
1041 } // namespace blink | 1041 } // namespace blink |
OLD | NEW |