| 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 } | 319 } |
| 320 | 320 |
| 321 void StyleBuilderFunctions::applyValueCSSPropertyResize( | 321 void StyleBuilderFunctions::applyValueCSSPropertyResize( |
| 322 StyleResolverState& state, | 322 StyleResolverState& state, |
| 323 const CSSValue& value) { | 323 const CSSValue& value) { |
| 324 const CSSIdentifierValue& identifierValue = toCSSIdentifierValue(value); | 324 const CSSIdentifierValue& identifierValue = toCSSIdentifierValue(value); |
| 325 | 325 |
| 326 EResize r = RESIZE_NONE; | 326 EResize r = RESIZE_NONE; |
| 327 if (identifierValue.getValueID() == CSSValueAuto) { | 327 if (identifierValue.getValueID() == CSSValueAuto) { |
| 328 if (Settings* settings = state.document().settings()) | 328 if (Settings* settings = state.document().settings()) |
| 329 r = settings->textAreasAreResizable() ? RESIZE_BOTH : RESIZE_NONE; | 329 r = settings->getTextAreasAreResizable() ? RESIZE_BOTH : RESIZE_NONE; |
| 330 } else { | 330 } else { |
| 331 r = identifierValue.convertTo<EResize>(); | 331 r = identifierValue.convertTo<EResize>(); |
| 332 } | 332 } |
| 333 state.style()->setResize(r); | 333 state.style()->setResize(r); |
| 334 } | 334 } |
| 335 | 335 |
| 336 static float mmToPx(float mm) { | 336 static float mmToPx(float mm) { |
| 337 return mm * cssPixelsPerMillimeter; | 337 return mm * cssPixelsPerMillimeter; |
| 338 } | 338 } |
| 339 static float inchToPx(float inch) { | 339 static float inchToPx(float inch) { |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 state.style()->setCaretColor( | 1033 state.style()->setCaretColor( |
| 1034 StyleBuilderConverter::convertStyleAutoColor(state, value)); | 1034 StyleBuilderConverter::convertStyleAutoColor(state, value)); |
| 1035 } | 1035 } |
| 1036 if (state.applyPropertyToVisitedLinkStyle()) { | 1036 if (state.applyPropertyToVisitedLinkStyle()) { |
| 1037 state.style()->setVisitedLinkCaretColor( | 1037 state.style()->setVisitedLinkCaretColor( |
| 1038 StyleBuilderConverter::convertStyleAutoColor(state, value, true)); | 1038 StyleBuilderConverter::convertStyleAutoColor(state, value, true)); |
| 1039 } | 1039 } |
| 1040 } | 1040 } |
| 1041 | 1041 |
| 1042 } // namespace blink | 1042 } // namespace blink |
| OLD | NEW |