Commit 3f05b75a authored by rjw's avatar rjw

JavaScriptCore

        Remove debugging code.  Could be cause of performance regresssion.
        * kjs/nodes.cpp:
        (FunctionCallNode::evaluate):

        Restire attributes correctly.
        * kjs/property_map.cpp:

WebKit        Only cache page if the load has completed.
        * WebView.subproj/WebFramePrivate.m:
        (-[WebFrame _setState:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2881 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6d8e1e57
2002-11-26 Richard Williamson <rjw@apple.com>
Remove debugging code. Could be cause of performance regresssion.
* kjs/nodes.cpp:
(FunctionCallNode::evaluate):
Restire attributes correctly.
* kjs/property_map.cpp:
2002-11-25 Richard Williamson <rjw@apple.com>
Use delete[] (not delete) operator to delete array.
......
2002-11-26 Richard Williamson <rjw@apple.com>
Remove debugging code. Could be cause of performance regresssion.
* kjs/nodes.cpp:
(FunctionCallNode::evaluate):
Restire attributes correctly.
* kjs/property_map.cpp:
2002-11-25 Richard Williamson <rjw@apple.com>
Use delete[] (not delete) operator to delete array.
......
2002-11-26 Richard Williamson <rjw@apple.com>
Remove debugging code. Could be cause of performance regresssion.
* kjs/nodes.cpp:
(FunctionCallNode::evaluate):
Restire attributes correctly.
* kjs/property_map.cpp:
2002-11-25 Richard Williamson <rjw@apple.com>
Use delete[] (not delete) operator to delete array.
......
......@@ -738,10 +738,6 @@ Value FunctionCallNode::evaluate(ExecState *exec)
Value v = ref.getValue(exec);
Object o = v.toObject(exec);
UString s = o.toString(exec);
//printf ("FunctionCallNode::evaluate %s\n", s.ascii());
if (v.type() != ObjectType) {
#ifndef NDEBUG
printInfo(exec, "WARNING: Failed function call attempt on", v, line);
......
......@@ -66,6 +66,7 @@ class SavedProperty {
public:
Identifier key;
Value value;
int attributes;
};
SavedProperties::SavedProperties() : _count(0), _properties(0) { }
......@@ -473,6 +474,7 @@ void PropertyMap::save(SavedProperties &p) const
//if (_table->entries[i].key) {
prop->key = Identifier(_table->entries[i].key);
prop->value = Value(_table->entries[i].value);
prop->attributes = _table->entries[i].attributes;
++prop;
}
}
......@@ -482,7 +484,7 @@ void PropertyMap::save(SavedProperties &p) const
void PropertyMap::restore(const SavedProperties &p)
{
for (int i = 0; i != p._count; ++i){
put(p._properties[i].key, p._properties[i].value.imp(), 0);
put(p._properties[i].key, p._properties[i].value.imp(), p._properties[i].attributes);
}
}
......
2002-11-26 Richard Williamson <rjw@apple.com>
Only cache page if the load has completed.
* WebView.subproj/WebFramePrivate.m:
(-[WebFrame _setState:]):
2002-11-26 Chris Blumenberg <cblu@apple.com>
Removed some logging.
......
2002-11-26 Richard Williamson <rjw@apple.com>
Only cache page if the load has completed.
* WebView.subproj/WebFramePrivate.m:
(-[WebFrame _setState:]):
2002-11-26 Chris Blumenberg <cblu@apple.com>
Removed some logging.
......
......@@ -588,7 +588,7 @@ - (void)_setState: (WebFrameState)newState
[[[self webView] frameScrollView] setDrawsBackground:NO];
// Cache the page, if possible.
if ([self _canCachePage] && [_private->bridge canCachePage] && [_private currentItem]){
if ([self _canCachePage] && [_private->bridge canCachePage] && [_private currentItem] && ![[self dataSource] isLoading]){
if (![[_private currentItem] pageCache]){
printf ("Saving page to back/forward cache, %s\n", [[[[self dataSource] URL] absoluteString] cString]);
[[_private currentItem] setHasPageCache: YES];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment