| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 2091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2102 Cursor cursor = frame()->page()->chromeClient().lastSetCursorForTesting(); | 2102 Cursor cursor = frame()->page()->chromeClient().lastSetCursorForTesting(); |
| 2103 | 2103 |
| 2104 StringBuilder result; | 2104 StringBuilder result; |
| 2105 result.appendLiteral("type="); | 2105 result.appendLiteral("type="); |
| 2106 result.append(cursorTypeToString(cursor.type())); | 2106 result.append(cursorTypeToString(cursor.type())); |
| 2107 result.appendLiteral(" hotSpot="); | 2107 result.appendLiteral(" hotSpot="); |
| 2108 result.appendNumber(cursor.hotSpot().x()); | 2108 result.appendNumber(cursor.hotSpot().x()); |
| 2109 result.append(','); | 2109 result.append(','); |
| 2110 result.appendNumber(cursor.hotSpot().y()); | 2110 result.appendNumber(cursor.hotSpot().y()); |
| 2111 if (cursor.image()) { | 2111 if (cursor.image()) { |
| 2112 IntSize size = cursor.image()->size(); | 2112 IntSize size = cursor.image()->defaultConcreteObjectSize(); |
| 2113 result.appendLiteral(" image="); | 2113 result.appendLiteral(" image="); |
| 2114 result.appendNumber(size.width()); | 2114 result.appendNumber(size.width()); |
| 2115 result.append('x'); | 2115 result.append('x'); |
| 2116 result.appendNumber(size.height()); | 2116 result.appendNumber(size.height()); |
| 2117 } | 2117 } |
| 2118 if (cursor.imageScaleFactor() != 1) { | 2118 if (cursor.imageScaleFactor() != 1) { |
| 2119 result.appendLiteral(" scale="); | 2119 result.appendLiteral(" scale="); |
| 2120 NumberToStringBuffer buffer; | 2120 NumberToStringBuffer buffer; |
| 2121 result.append(numberToFixedPrecisionString(cursor.imageScaleFactor(), 8,
buffer, true)); | 2121 result.append(numberToFixedPrecisionString(cursor.imageScaleFactor(), 8,
buffer, true)); |
| 2122 } | 2122 } |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2560 } | 2560 } |
| 2561 | 2561 |
| 2562 int Internals::getScrollAnimationState(Node* node) const | 2562 int Internals::getScrollAnimationState(Node* node) const |
| 2563 { | 2563 { |
| 2564 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) | 2564 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) |
| 2565 return static_cast<int>(scrollableArea->scrollAnimator().m_runState); | 2565 return static_cast<int>(scrollableArea->scrollAnimator().m_runState); |
| 2566 return -1; | 2566 return -1; |
| 2567 } | 2567 } |
| 2568 | 2568 |
| 2569 } // namespace blink | 2569 } // namespace blink |
| OLD | NEW |