| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
| 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 void ComputedStyle::setContent(QuoteType quote, bool add) | 919 void ComputedStyle::setContent(QuoteType quote, bool add) |
| 920 { | 920 { |
| 921 if (add) { | 921 if (add) { |
| 922 appendContent(ContentData::create(quote)); | 922 appendContent(ContentData::create(quote)); |
| 923 return; | 923 return; |
| 924 } | 924 } |
| 925 | 925 |
| 926 rareNonInheritedData.access()->m_content = ContentData::create(quote); | 926 rareNonInheritedData.access()->m_content = ContentData::create(quote); |
| 927 } | 927 } |
| 928 | 928 |
| 929 void ComputedStyle::setContent(ElementContent elementContent, bool add) |
| 930 { |
| 931 if (add) { |
| 932 appendContent(ContentData::create(elementContent)); |
| 933 return; |
| 934 } |
| 935 |
| 936 rareNonInheritedData.access()->m_content = ContentData::create(elementConten
t); |
| 937 } |
| 938 |
| 929 bool ComputedStyle::hasWillChangeCompositingHint() const | 939 bool ComputedStyle::hasWillChangeCompositingHint() const |
| 930 { | 940 { |
| 931 for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size
(); ++i) { | 941 for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size
(); ++i) { |
| 932 switch (rareNonInheritedData->m_willChange->m_properties[i]) { | 942 switch (rareNonInheritedData->m_willChange->m_properties[i]) { |
| 933 case CSSPropertyOpacity: | 943 case CSSPropertyOpacity: |
| 934 case CSSPropertyTransform: | 944 case CSSPropertyTransform: |
| 935 case CSSPropertyAliasWebkitTransform: | 945 case CSSPropertyAliasWebkitTransform: |
| 936 case CSSPropertyTop: | 946 case CSSPropertyTop: |
| 937 case CSSPropertyLeft: | 947 case CSSPropertyLeft: |
| 938 case CSSPropertyBottom: | 948 case CSSPropertyBottom: |
| (...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1881 if (!shadowList) | 1891 if (!shadowList) |
| 1882 return false; | 1892 return false; |
| 1883 for (size_t i = shadowList->shadows().size(); i--; ) { | 1893 for (size_t i = shadowList->shadows().size(); i--; ) { |
| 1884 if (shadowList->shadows()[i].color().isCurrentColor()) | 1894 if (shadowList->shadows()[i].color().isCurrentColor()) |
| 1885 return true; | 1895 return true; |
| 1886 } | 1896 } |
| 1887 return false; | 1897 return false; |
| 1888 } | 1898 } |
| 1889 | 1899 |
| 1890 } // namespace blink | 1900 } // namespace blink |
| OLD | NEW |