[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
cblu
cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:24:41 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 2a55d7a531e0de34cf0c8e437b248e7cd34a64c8
Author: cblu <cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Feb 17 17:21:21 2003 +0000
WebKit:
Added debug method that can be used inside of gdb to examine an image. Needed this many times.
Reviewed by darin.
* Misc.subproj/WebNSImageExtras.h:
* Misc.subproj/WebNSImageExtras.m:
(-[NSImage _web_saveAndOpen]):
WebBrowser:
Implemented the tab bar with tabs and all.
Reviewed by darin.
* BarBackground.m: moved private appkit declarations to BrowserNSViewExtras and BrowserNSWindowExtras so they can be used by other classes
* BrowserNSStringExtras.m:
(-[NSString drawDoubledInRect:withTopColor:bottomColor:font:centered:flipped:]): obey the x origin when centering text
* BrowserNSViewExtras.h:
* BrowserNSViewExtras.m:
(-[NSView shouldDrawBackgroundTheSneakyPrivateNSWindowWay]): moved method from BarBackground so it can be used by other classes
* BrowserNSWindowExtras.h: put private appkit declarations here
* English.lproj/Browser.nib:
* EtchedStringButtonCell.h: Added.
* EtchedStringButtonCell.m: Added. Factored out from FavoriteButtonCell so TabButtonCell can use the same functionality
(+[EtchedStringButtonCell font]):
(+[EtchedStringButtonCell bottomColorForDarkText]):
(+[EtchedStringButtonCell topColorForDarkText]):
(+[EtchedStringButtonCell bottomColorForLightText]):
(+[EtchedStringButtonCell topColorForLightText]):
(-[EtchedStringButtonCell textRectForFrame:]):
(-[EtchedStringButtonCell drawInteriorWithFrame:inView:]):
(-[EtchedStringButtonCell setTextCenterTruncated:]):
(-[EtchedStringButtonCell isTextCenterTruncated]):
(-[EtchedStringButtonCell setTextCentered:]):
(-[EtchedStringButtonCell isTextCentered]):
(-[EtchedStringButtonCell setDrawsLightText:]):
(-[EtchedStringButtonCell drawsLightText]):
* FavoriteButton.m:
(-[FavoriteButton setBookmark:]):
* FavoriteButtonCell.h:
* FavoriteButtonCell.m: made subclass of EtchedStringButtonCell
(+[FavoriteButtonCell updateCellForButton:]):
(-[FavoriteButtonCell textRectForFrame:]):
(-[FavoriteButtonCell imageRectForFrame:]):
(-[FavoriteButtonCell drawInteriorWithFrame:inView:]):
* Resources/Images/TabBevel_Caps.tif: Added.
* Resources/Images/TabBevel_Middle.tif: Added.
* Resources/Images/TabClose_Back.tif: Added.
* Resources/Images/TabClose_Back_Pressed.tif: Added.
* Resources/Images/TabClose_Back_Rollover.tif: Added.
* Resources/Images/TabClose_Front.tif: Added.
* Resources/Images/TabClose_Front_Pressed.tif: Added.
* Resources/Images/TabClose_Front_Rollover.tif: Added.
* Resources/Images/TabMask_Caps.tif: Added.
* Resources/Images/TabMask_Middle.tif: Added.
* TabBarView.h:
* TabBarView.m:
(-[TabBarView scaledAndTexturedWindowBackgroundImage]): image of textured background used by tab buttons
(-[TabBarView windowBackgroundImage]): ditto
(-[TabBarView _addTabButtonWithTabViewItem:]): links tab button to tab item
(-[TabBarView _removeTabButton:]): removes tab button
(-[TabBarView _layOutButtons]): lays out tab buttons
(-[TabBarView _bringSelectedTabToFront:]): brings tab button of tab item to front
(-[TabBarView awakeFromNib]): set things up
(-[TabBarView dealloc]): release things
(-[TabBarView _drawSeparatorAtXOrigin:]): draws separator
(-[TabBarView drawRect:]): draw separators
(-[TabBarView setFrameSize:]): call _layOutButtons
(-[TabBarView bringTabToFront:]): brings tab item of tab button to front
(-[TabBarView closeTab:]): closes the clicked tab
(-[TabBarView tabView:shouldSelectTabViewItem:]): forward to delegate, return YES otherwise
(-[TabBarView tabView:willSelectTabViewItem:]): deselect current tab, forward to delegate
(-[TabBarView tabView:didSelectTabViewItem:]): select current tab, forward to delegate
(-[TabBarView tabViewDidChangeNumberOfTabViewItems:]): call _layOutButtons, forward to delegate
* TabButton.h: Added.
* TabButton.m: Added.
(+[TabButton initialize]): set the cell
(+[TabButton _loadImages]): load images
(-[TabButton _setCloseButtonImages:]): set close images
(-[TabButton initWithFrame:tabViewItem:]): set attributes
(-[TabButton dealloc]): release things
(-[TabButton drawRect:]): drag textured background obeying mask
(-[TabButton mouseDownCanMoveWindow]): return NO
(-[TabButton setState:]): set the close button images appropriately
(-[TabButton setCloseAction:]): set the action of the close button
(-[TabButton tabViewItem]): getter
(-[TabButton height]): returns the height given the height of the mask image
(-[TabButton closeTab:]): call the close action on the target of the button
* TabButtonCell.h: Added.
* TabButtonCell.m: Added.
(+[TabButtonCell bottomColorForLightText]): override
(+[TabButtonCell topColorForLightText]): override
(-[TabButtonCell textRectForFrame:]): override
(-[TabButtonCell setTextInsetX:]): sets the X inset
* TabViewItemWithButton.h: Added.
* TabViewItemWithButton.m: Added.
(-[TabViewItemWithButton dealloc]):
(-[TabViewItemWithButton setLabel:]): set the title on the button
(-[TabViewItemWithButton setButton:]): set the button
(-[TabViewItemWithButton button]): returns the button
* WebBrowser.pbproj/project.pbxproj:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index b00a8ce..a0809b2 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,13 @@
+2003-02-16 Chris Blumenberg <cblu at apple.com>
+
+ Added debug method that can be used inside of gdb to examine an image. Needed this many times.
+
+ Reviewed by darin.
+
+ * Misc.subproj/WebNSImageExtras.h:
+ * Misc.subproj/WebNSImageExtras.m:
+ (-[NSImage _web_saveAndOpen]):
+
2003-02-15 Darin Adler <darin at apple.com>
* English.lproj/Localizable.strings: Regenerated.
diff --git a/WebKit/English.lproj/StringsNotToBeLocalized.txt b/WebKit/English.lproj/StringsNotToBeLocalized.txt
index 4144cb8..c8450ba 100644
--- a/WebKit/English.lproj/StringsNotToBeLocalized.txt
+++ b/WebKit/English.lproj/StringsNotToBeLocalized.txt
@@ -17,6 +17,7 @@
"/Library/Internet Plug-Ins"
"/favicon.ico"
"/tmp/SafariPlugInStream.XXXXXX"
+"/tmp/XXXXXX.tiff"
"0x0"
"1.00"
"1000"
diff --git a/WebKit/Misc.subproj/WebNSImageExtras.h b/WebKit/Misc.subproj/WebNSImageExtras.h
index 30d4143..805c894 100644
--- a/WebKit/Misc.subproj/WebNSImageExtras.h
+++ b/WebKit/Misc.subproj/WebNSImageExtras.h
@@ -15,4 +15,7 @@
- (void)_web_dissolveToFraction:(float)delta;
+// Debug method. Saves an image and opens it in the preferred TIFF viewing application.
+- (void)_web_saveAndOpen;
+
@end
diff --git a/WebKit/Misc.subproj/WebNSImageExtras.m b/WebKit/Misc.subproj/WebNSImageExtras.m
index 120d90f..f4dcf9a 100644
--- a/WebKit/Misc.subproj/WebNSImageExtras.m
+++ b/WebKit/Misc.subproj/WebNSImageExtras.m
@@ -92,4 +92,18 @@ static BOOL AKBugIsFixed = NO;
[dissolvedImage release];
}
+- (void)_web_saveAndOpen
+{
+ char *path = strdup("/tmp/XXXXXX.tiff");
+
+ int fd = mkstemps(path, 5);
+ if (fd != -1) {
+ NSData *data = [self TIFFRepresentation];
+ write(fd, [data bytes], [data length]);
+ close(fd);
+
+ [[NSWorkspace sharedWorkspace] openFile:[NSString stringWithCString:path]];
+ }
+}
+
@end
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list