| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Google Inc. | 3 * Copyright (C) 2008 Google Inc. |
| 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 749 IntRect draggingRect = enclosingIntRect(sourceFrame->selection().bounds()); | 749 IntRect draggingRect = enclosingIntRect(sourceFrame->selection().bounds()); |
| 750 int xpos = draggingRect.maxX(); | 750 int xpos = draggingRect.maxX(); |
| 751 xpos = draggingRect.x() < xpos ? draggingRect.x() : xpos; | 751 xpos = draggingRect.x() < xpos ? draggingRect.x() : xpos; |
| 752 int ypos = draggingRect.maxY(); | 752 int ypos = draggingRect.maxY(); |
| 753 ypos = draggingRect.y() < ypos ? draggingRect.y() : ypos; | 753 ypos = draggingRect.y() < ypos ? draggingRect.y() : ypos; |
| 754 return IntPoint(xpos, ypos); | 754 return IntPoint(xpos, ypos); |
| 755 } | 755 } |
| 756 | 756 |
| 757 static const IntSize& maxDragImageSize() | 757 static const IntSize& maxDragImageSize() |
| 758 { | 758 { |
| 759 #if OS(DARWIN) | 759 #if OS(MACOSX) |
| 760 // Match Safari's drag image size. | 760 // Match Safari's drag image size. |
| 761 static const IntSize maxDragImageSize(400, 400); | 761 static const IntSize maxDragImageSize(400, 400); |
| 762 #else | 762 #else |
| 763 static const IntSize maxDragImageSize(200, 200); | 763 static const IntSize maxDragImageSize(200, 200); |
| 764 #endif | 764 #endif |
| 765 return maxDragImageSize; | 765 return maxDragImageSize; |
| 766 } | 766 } |
| 767 | 767 |
| 768 static PassOwnPtr<DragImage> dragImageForImage(Element* element, Image* image, c
onst IntPoint& dragOrigin, const IntRect& imageRect, IntPoint& dragLocation) | 768 static PassOwnPtr<DragImage> dragImageForImage(Element* element, Image* image, c
onst IntPoint& dragOrigin, const IntRect& imageRect, IntPoint& dragLocation) |
| 769 { | 769 { |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 return false; | 922 return false; |
| 923 #endif | 923 #endif |
| 924 } | 924 } |
| 925 | 925 |
| 926 void DragController::cleanupAfterSystemDrag() | 926 void DragController::cleanupAfterSystemDrag() |
| 927 { | 927 { |
| 928 } | 928 } |
| 929 | 929 |
| 930 } // namespace WebCore | 930 } // namespace WebCore |
| 931 | 931 |
| OLD | NEW |