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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 StyleResolverState& state) { | 206 StyleResolverState& state) { |
207 state.style()->setCursor(state.parentStyle()->cursor()); | 207 state.style()->setCursor(state.parentStyle()->cursor()); |
208 state.style()->setCursorList(state.parentStyle()->cursors()); | 208 state.style()->setCursorList(state.parentStyle()->cursors()); |
209 } | 209 } |
210 | 210 |
211 void StyleBuilderFunctions::applyValueCSSPropertyCursor( | 211 void StyleBuilderFunctions::applyValueCSSPropertyCursor( |
212 StyleResolverState& state, | 212 StyleResolverState& state, |
213 const CSSValue& value) { | 213 const CSSValue& value) { |
214 state.style()->clearCursorList(); | 214 state.style()->clearCursorList(); |
215 if (value.isValueList()) { | 215 if (value.isValueList()) { |
216 state.style()->setCursor(ECursor::Auto); | 216 state.style()->setCursor(ECursor::kAuto); |
217 for (const auto& item : toCSSValueList(value)) { | 217 for (const auto& item : toCSSValueList(value)) { |
218 if (item->isCursorImageValue()) { | 218 if (item->isCursorImageValue()) { |
219 const CSSCursorImageValue& cursor = toCSSCursorImageValue(*item); | 219 const CSSCursorImageValue& cursor = toCSSCursorImageValue(*item); |
220 const CSSValue& image = cursor.imageValue(); | 220 const CSSValue& image = cursor.imageValue(); |
221 state.style()->addCursor(state.styleImage(CSSPropertyCursor, image), | 221 state.style()->addCursor(state.styleImage(CSSPropertyCursor, image), |
222 cursor.hotSpotSpecified(), cursor.hotSpot()); | 222 cursor.hotSpotSpecified(), cursor.hotSpot()); |
223 } else { | 223 } else { |
224 state.style()->setCursor( | 224 state.style()->setCursor( |
225 toCSSIdentifierValue(*item).convertTo<ECursor>()); | 225 toCSSIdentifierValue(*item).convertTo<ECursor>()); |
226 } | 226 } |
(...skipping 802 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 |