[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
hyatt
hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:00:35 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit d4a14ac7d767aeaf31d08c24b0098370901272e8
Author: hyatt <hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Fri Nov 15 00:04:13 2002 +0000
Move text measurement and layout beyond onload. This
shoudl speed up i-bench substantially and morrison's
PLT test slightly. Note that the adjustFrames layout
stuff has been removed from isLoadComplete.
* WebView.subproj/WebFramePrivate.m:
(-[WebFrame _timedLayout:]):
(-[WebFrame _isLoadComplete]):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2681 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index e4600b8..34a8a95 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,14 @@
+2002-11-14 David Hyatt <hyatt at apple.com>
+
+ Move text measurement and layout beyond onload. This
+ shoudl speed up i-bench substantially and morrison's
+ PLT test slightly. Note that the adjustFrames layout
+ stuff has been removed from isLoadComplete.
+
+ * WebView.subproj/WebFramePrivate.m:
+ (-[WebFrame _timedLayout:]):
+ (-[WebFrame _isLoadComplete]):
+
2002-11-14 Darin Adler <darin at apple.com>
* English.lproj/Localizable.strings: Updated to include the new
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index e4600b8..34a8a95 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,3 +1,14 @@
+2002-11-14 David Hyatt <hyatt at apple.com>
+
+ Move text measurement and layout beyond onload. This
+ shoudl speed up i-bench substantially and morrison's
+ PLT test slightly. Note that the adjustFrames layout
+ stuff has been removed from isLoadComplete.
+
+ * WebView.subproj/WebFramePrivate.m:
+ (-[WebFrame _timedLayout:]):
+ (-[WebFrame _isLoadComplete]):
+
2002-11-14 Darin Adler <darin at apple.com>
* English.lproj/Localizable.strings: Updated to include the new
diff --git a/WebKit/WebView.subproj/WebFramePrivate.m b/WebKit/WebView.subproj/WebFramePrivate.m
index 656bce4..12d412f 100644
--- a/WebKit/WebView.subproj/WebFramePrivate.m
+++ b/WebKit/WebView.subproj/WebFramePrivate.m
@@ -309,7 +309,7 @@ static const char * const stateNames[] = {
- (void)_timedLayout: (id)userInfo
{
LOG(Timing, "%@: state = %s", [self name], stateNames[_private->state]);
-
+
[_private->scheduledLayoutTimer release];
_private->scheduledLayoutTimer = nil;
@@ -323,9 +323,7 @@ static const char * const stateNames[] = {
if ([documentView isKindOfClass: [NSView class]]) {
NSView *dview = (NSView *)documentView;
-
-
- NSRect frame = [dview frame];
+ NSRect frame = [dview frame];
if (frame.size.width == 0 || frame.size.height == 0){
// We must do the layout now, rather than depend on
@@ -336,17 +334,17 @@ static const char * const stateNames[] = {
// Force a layout now. At this point we could
// check to see if any CSS is pending and delay
// the layout further to avoid the flash of unstyled
- // content.
+ // content.
[documentView layout];
}
}
-
+
[documentView setNeedsDisplay: YES];
- }
- else {
- if ([self controller])
- LOG(Timing, "%@: NOT performing timed layout (not needed), %f seconds since start of document load", [self name], CFAbsoluteTimeGetCurrent() - [[[[self controller] mainFrame] dataSource] _loadingStartedTime]);
- }
+ }
+ else {
+ if ([self controller])
+ LOG(Timing, "%@: NOT performing timed layout (not needed), %f seconds since start of document load", [self name], CFAbsoluteTimeGetCurrent() - [[[[self controller] mainFrame] dataSource] _loadingStartedTime]);
+ }
}
@@ -625,19 +623,12 @@ static const char * const stateNames[] = {
// Tell the just loaded document to layout. This may be necessary
// for non-html content that needs a layout message.
- [thisDocumentView setNeedsLayout:YES];
- [thisDocumentView layout];
-
- // Unfortunately if this frame has children we have to lay them
- // out too. This could be an expensive operation.
- // FIXME: If we can figure out how to avoid the layout of children,
- // (just need for iframe placement/sizing) we could get a few percent
- // speed improvement.
- [ds _layoutChildren];
-
- [thisDocumentView setNeedsDisplay:YES];
- //[thisDocumentView display];
-
+ if (!([[self webView] isDocumentHTML])) {
+ [thisDocumentView setNeedsLayout:YES];
+ [thisDocumentView layout];
+ [thisDocumentView setNeedsDisplay:YES];
+ }
+
// If the user had a scroll point scroll to it. This will override
// the anchor point. After much discussion it was decided by folks
// that the user scroll point should override the anchor point.
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list