Changeset 19713 in webkit
- Timestamp:
- Feb 19, 2007 3:32:12 PM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r19710 r19713 1 2007-02-19 Anders Carlsson <acarlsson@apple.com> 2 3 Reviewed by Oliver. 4 5 Make DragController::maxDragImageSize a function to get rid of the global initializer. 6 7 * page/DragController.cpp: 8 (WebCore::DragController::doImageDrag): 9 * page/DragController.h: 10 * page/mac/DragControllerMac.mm: 11 (WebCore::DragController::maxDragImageSize): 12 * page/qt/DragControllerQt.cpp: 13 (WebCore::DragController::maxDragImageSize): 14 1 15 2007-02-19 Darin Adler <darin@apple.com> 2 16 -
trunk/WebCore/page/DragController.cpp
r19699 r19713 634 634 IntSize newSize; 635 635 if (dragImage) { 636 dragImage = fitDragImageToMaxSize(dragImage, MaxDragImageSize);636 dragImage = fitDragImageToMaxSize(dragImage, maxDragImageSize()); 637 637 dragImage = dissolveDragImageToFraction(dragImage, DragImageAlpha); 638 638 newSize = dragImageSize(dragImage); -
trunk/WebCore/page/DragController.h
r19689 r19713 83 83 84 84 bool startDrag(Frame* src, Clipboard*, DragOperation srcOp, const PlatformMouseEvent& dragEvent, const IntPoint& dragOrigin, bool isDHTMLDrag); 85 static const IntSize& maxDragImageSize(); 85 86 86 87 static const int LinkDragBorderInset; 87 static const IntSize MaxDragImageSize;88 88 static const int MaxOriginalImageArea; 89 89 static const int DragIconRightInset; -
trunk/WebCore/page/mac/DragControllerMac.mm
r19689 r19713 36 36 const int DragController::LinkDragBorderInset = -2; 37 37 38 const IntSize DragController::MaxDragImageSize(400, 400);39 38 const int DragController::MaxOriginalImageArea = 1500 * 1500; 40 39 const int DragController::DragIconRightInset = 7; … … 61 60 } 62 61 62 const IntSize& DragController::maxDragImageSize() 63 { 64 static const IntSize maxDragImageSize(400, 400); 65 66 return maxDragImageSize; 63 67 } 68 69 } -
trunk/WebCore/page/qt/DragControllerQt.cpp
r19689 r19713 38 38 // little correlation with Qt standards... 39 39 const int DragController::LinkDragBorderInset = 2; 40 const IntSize DragController::MaxDragImageSize(400, 400);41 40 const int DragController::MaxOriginalImageArea = 1500 * 1500; 42 41 const int DragController::DragIconRightInset = 7; … … 60 59 } 61 60 61 const IntSize& DragController::maxDragImageSize() 62 { 63 static const IntSize maxDragImageSize(400, 400); 64 65 return maxDragImageSize; 62 66 } 67 68 }
Note: See TracChangeset
for help on using the changeset viewer.