- 14 Dec, 2002 2 commits
-
-
kocienda authored
Fix for this bug: Radar 3128159 (Netscape non-standard DOM event attribute "which" unsupported) * khtml/dom/dom2_events.cpp: (UIEvent::which): Added which() definition. * khtml/dom/dom2_events.h: Added declarations for which() functions in UIEvent. * khtml/ecma/kjs_events.cpp: (DOMUIEvent::getValueProperty): Added which property. * khtml/ecma/kjs_events.h: Ditto. * khtml/ecma/kjs_events.lut.h: File regenerated. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3052 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mjs authored
- fix toString() conversion for numbers less than 1. Negative exponents are still wrong though (things like 1E-34). * kjs/ustring.cpp: (UString::from): Don't print empty string for numbers less than 1, and remember to add extra 0s after the decimal for negative decimal positions. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 13 Dec, 2002 18 commits
-
-
rjw authored
Implemented findWordBoundary. We now correctly detect word boundaries. This function makes use of carbon unicode utilities. With help from hyatt, made selection correctly account for render continuations. This fixes many of the 'unable to select' issues. Reviewed by trey and hyatt. * khtml/khtml_events.cpp: (khtml::MouseEvent::offset): * khtml/khtml_part.cpp: (findWordBoundary): (KHTMLPart::khtmlMousePressEvent): (KHTMLPart::khtmlMouseMoveEvent): * khtml/rendering/render_object.cpp: (RenderObject::checkSelectionPoint): * khtml/rendering/render_object.h: * khtml/rendering/render_text.cpp: (RenderText::checkSelectionPoint): * khtml/rendering/render_text.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3050 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mjs authored
- fixed build. * ForwardingHeaders/rendering/render_layer.h: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mjs authored
* khtml/dom/dom2_events.cpp: (UIEvent::layerX): Added to support nonstandard Mozilla event.layerX property. (UIEvent::layerY): Added to support nonstandard Mozilla event.layerY property. * khtml/dom/dom2_events.h: * khtml/ecma/kjs_events.cpp: (DOMUIEvent::getValueProperty): Implemented layerX and layerY * khtml/ecma/kjs_events.h: * khtml/ecma/kjs_events.lut.h: * khtml/xml/dom2_eventsimpl.cpp: (MouseEventImpl::MouseEventImpl): Added call to computeLayerPos. (MouseEventImpl::computeLayerPos): Compute layer position. (MouseEventImpl::layerX): Added. (MouseEventImpl::layerY): Added. (MouseEventImpl::initMouseEvent): Added call to computeLayerPos. * khtml/xml/dom2_eventsimpl.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3048 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hyatt authored
level replaced floating elements were being treated as though they didn't float. Reviewed by gramps * khtml/rendering/render_flow.cpp: (RenderFlow::layoutBlockChildren): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3047 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
* WebView.subproj/WebController.m: (-[WebController userAgentForURL:]): Add "(like Gecko)" string and change "WebKit" to "AppleWebKit". * English.lproj/StringsNotToBeLocalized.txt: Update for these changes. * Misc.subproj/WebUnicode.h: No need for & 0xFF since we cast to unsigned char. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3046 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hyatt authored
Do not treat XHTML-style tags e.g., <br/> or <table/> as self-closing. This is absolutely wrong, and it does not match the behavior of other browsers. According to the HTML4 spec for parsing, / is an erroneous character and should simply be dropped, so <table/> should be treated like <table>. Fixes for crashes on glazman's blog and on tantek's blog. Both still mis-render, but at least they don't crash. Reviewed by gramps (and darin too) * khtml/html/htmltokenizer.cpp: * khtml/rendering/render_container.cpp: * khtml/rendering/render_style.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3045 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
sullivan authored
- WebKit part of fix for 3028061 -- visiting a bookmarked site that now has a site icon will not update bookmark's icon No longer store the icon in the WebHistoryItem, since there's no mechanism for keeping it fresh and telling interested clients when it changes. Instead, the latest icon is always returned from the icon database, and it's up to clients to get a fresh one when they notice that the icon for a URL has been updated. Reviewed by Darin * History.subproj/WebHistoryItem.h: remove _icon and _loadedIcon ivars * History.subproj/WebHistoryItem.m: (-[WebHistoryItem dealloc]): don't release _icon (-[WebHistoryItem icon]): just return fresh icon from database, don't store (-[WebHistoryItem setURL:]): don't set _loadedIcon to NO WebBrowser: - WebBrowser part of fix for 3028061 -- visiting a bookmarked site that now has a site icon will not update bookmark's icon This first cut, which fixes the bug completely, just tosses out the cached bookmark & history menus & tells the outline view to redisplay everything. We might improve this later, but in practice the only difference in behavior that this will cause is to make the Bookmarks menu rebuild itself from scratch when clicked on more often. (We can address that multiple ways, probably the best one being to make rebuilding much faster by using IconRefs instead of NSImages, see 3120678.) Reviewed by Darin * BookmarksController.m: (-[BookmarksController awakeFromNib]): register for icon-changed notifications (-[BookmarksController _receivedIconChangedNotification:]): mark menu dirty when any icon has changed * BookmarksViewController.m: (-[BookmarksViewController awakeFromNib]): register for icon-changed notifications (-[BookmarksViewController iconChanged:]): reload outlineview data when any icon has changed. Note that this has no effect when the outlineview is not showing. * GlobalHistory.m: (-[GlobalHistory _registerForHistoryNotifications]): register for icon-changed notifications (-[GlobalHistory receivedIconChangedNotification:]): mark menu dirty when any icon has changed (-[GlobalHistory receivedEntriesChangedNotification:]): removed wayward space character git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
sheridan authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
Reviewed by Maciej. * English.lproj/StringsNotToBeLocalized.txt: Update for recent changes. WebBrowser: Reviewed by Maciej. - fix some relatively new messages to use curly apostrophes * AppController.m: (-[AppController confirmEmptyCache:]): One in here. * LocationChangeError.m: (-[LocationChangeHandler specializedMessageForError:]): Two in here. * English.lproj/Localizable.strings: Generated this. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
trey authored
3108865 - frames not maintained going back at directory.apple.com Both bugs are fixed by the same small change. We no longer try to inherit loadType across redirects. Instead we just make sure the right thing happens in _transitionToCommitted: for redirects in the loadType=Standard case. 3122721 - History stores both original and redirected sites Easy fix while in the neighborhood. We just don't add to History when doing a redirect. Reviewed by rjw * WebView.subproj/WebFramePrivate.m: (-[WebFrame _transitionToCommitted:]): On redirect, update the URL of the frame's current item, not the current item in the b/f list. Also do not add to history on redirect. (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]): Cut out funny business that tried to guess when to inherit loadtype across redirects. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3040 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hyatt authored
escaped characters in the CSS content property, and bug 3127375 (44854 in bugs.kde.org), which had to do with making sure table cells relayout properly when images load async. Reviewed by darin and john * khtml/css/cssparser.cpp: (StyleBaseImpl::parseContent): (StyleBaseImpl::isHexadecimal): * khtml/css/cssparser.h: * khtml/rendering/bidi.cpp: (RenderFlow::layoutInlineChildren): * khtml/rendering/render_flow.cpp: (RenderFlow::layout): * khtml/rendering/render_flow.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
- moved KWQFontFamily and KWQPageState to new homes * kwq/KWQFontFamily.h: Added. * kwq/KWQFontFamily.mm: Added. * kwq/KWQPageState.h: Added. * kwq/KWQPageState.mm: Added. * WebCore.pbproj/project.pbxproj: Added new source files. * kwq/KWQFont.h: Removed KWQFontFamily. * kwq/KWQFont.mm: Removed KWQFontFamily. * kwq/WebCoreBridge.mm: Removed KWQPageState. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mjs authored
- fixed 3083814 - dhtml at www.bayarea.com doesn't hide on some mouse movements * khtml/ecma/kjs_events.h: * khtml/ecma/kjs_events.cpp: (DOMUIEvent::getValueProperty): Implemented pageX and pageY properties. * khtml/ecma/kjs_events.lut.h: Regenerated. * khtml/dom/dom2_events.h: * khtml/dom/dom2_events.cpp: (UIEvent::pageX): Get x coordinate if a mouse event. (UIEvent::pageY): Get y coordinate if a mouse event. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3037 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
Fixed 3127225. Provide new SPI to get available system memory. (Also currently unused SPI to get number of processors.) Reviewed by gramps. * Misc.subproj/WebSystemBits.h: * Misc.subproj/WebSystemBits.m: (initCapabilities): (WebSystemMainMemory): (WebSystemProcessors): * WebFoundation.exp: * WebFoundation.pbproj/project.pbxproj: WebCore: Fixed 3127225. Set WebCore object cache size when first bridge is created. Reviewed by gramps. * kwq/WebCoreBridge.h: * kwq/WebCoreBridge.mm: (-[WebCoreBridge init]): WebKit: Fixed 3127225. Scale page cache based on available memory. Also added support for setting WebCore object cache size via a preference. Fixed 3126267. Increase CG glyph cache size if font smoothing is turned on. Reviewed by gramps. * History.subproj/WebBackForwardList.m: (+[WebBackForwardList pageCacheSize]): * Misc.subproj/WebKitLogging.h: * Misc.subproj/WebKitLogging.m: * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge getObjectCacheSize]): * WebCoreSupport.subproj/WebTextRendererFactory.m: (getAppDefaultValue): (getUserDefaultValue): (getLCDScaleParameters): * WebView.subproj/WebPreferences.m: (+[WebPreferences load]): (-[WebPreferences _pageCacheSize]): (-[WebPreferences _objectCacheSize]): * WebView.subproj/WebPreferencesPrivate.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cblu authored
Reviewed by darin. * Misc.subproj/WebIconDatabase.m: (-[WebIconDatabase _updateFileDatabase]): Only save icons with a size of 16 x 16 since that's the only size we use. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
cblu authored
Reviewed by darin. * Plugins.subproj/WebBaseNetscapePluginView.m: (-[WebBaseNetscapePluginView status:]): check the incoming string before calling [NSString stringWithCString] git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3034 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
Overall speedup on cvs-base is about 5%. - reduce QString use in the tokenizer and tighten up QString implementation for a speedup - fix up the QFontFamily implementation, using new QString features too, for a speedup * khtml/html/htmltokenizer.h: Take const QString & instead of QString to avoid an extra copy. * khtml/html/htmltokenizer.cpp: (HTMLTokenizer::begin): Use QString::null instead of "" for QString objects; faster. (HTMLTokenizer::scriptHandler): In APPLE_CHANGES, use new prepend that avoids the need to create a temporary QString. Use QString::null instead of QString() for a null string, and also made other small fixes to avoid temporary QStrings. (HTMLTokenizer::setSrc): Take const QString & instead of QString to avoid an extra copy. * kwq/KWQFont.h: Rename QFontFamily to KWQFontFamily. Make family() inline, add inline familyIsEmpty(). Change KWQFontFamily to store both the QString for the family and the NSString instead of only the NSString to avoid constant conversions back and forth. Remove type cases in CREATE_FAMILY_ARRAY that could result in copying the font object. * kwq/KWQFont.mm: (KWQFontFamily::KWQFontFamily): Fix bug where a copied family object would have a random ref count instead of a ref count of 0. Also update for NSString change. (KWQFontFamily::operator=): Use the ref before deref algorithm instead of the check for self-assignment. (KWQFontFamily::getNSFamily): Compute the NSString for the family name here. To avoid making an NSString every time, use a CFDictionary with QString as a key and NSString as a value instead of using an NSSet. (KWQFontFamily::setFamily): Invalidate the NSString family when the QString family is changed. Moved the code to make things unique to getNSFamily. (KWQFontFamily::operator==): Call getNSFamily rather than * kwq/KWQString.h: Added a prepend and insert overload that take a QChar pointer and length, for use in the tokenizer, and a hash function, for use in CFDictionary. Also added a global set of CFDictionaryKeyCallBacks. * kwq/KWQString.mm: (QString::prepend): New overload calls new insert overload. (QString::insert): Old insert slightly tightened by calling detach() only after the early exit and removing an extra detach from a function that already does forceUnicode. Added the new insert that takes a QChar * and a length. (operator==): Rewrite this so that it is efficient and doesn't involve creating a QString temporary or doing a function call. (QString::hash): Wrote this. Used the same hash algorithm I did in my recent KJS work. (retainQString): Added. For use in CFDictionaryKey callback. (releaseQString): Added. For use in CFDictionaryKey callback. (describeQString): Added. For use in CFDictionaryKey callback. (equalQString): Added. For use in CFDictionaryKey callback. (hashQString): Added. For use in CFDictionaryKey callback. * khtml/rendering/font.h: Change name to KWQFontFamily. * khtml/rendering/font.cpp: (Font::update): Call familyIsEmpty() instead of family().isEmpty() to avoid making and destroying a QString every time. Also put this batch of KWQFontFamily-specific changes inside #if APPLE_CHANGES. Much to my dismay, we have others elsewhere that aren't ifdef'd. * khtml/css/cssstyleselector.cpp: (CSSStyleSelector::applyRule): Change name to KWQFontFamily. Clearly this code needs some #if APPLE_CHANGES, and changing the class name helps make that clear. - change KHTMLSettings so using it doesn't require copying QStrings for a speedup * kwq/KWQKHTMLSettings.h: Made all the functions static members to avoid the unnecessary overhead of passing a this pointer. Added lots of setXXX functions for use by the WebCoreSettings code that gets called by WebKit when settings are changed. Return objects by reference because we can and it avoids copying QString objects. * kwq/KWQKHTMLSettings.mm: Changed all the functions in here to return the same global object each time, and made the set functions update those globals. * kwq/WebCoreSettings.mm: All the setters now call through to KHTMLSettings set functions. - fixed 3126513 -- crash in KWQKHTMLPart::clearTimers() deallocating KWQPageState - did some cleanup in the bridge and the part; part of the process of moving real work out of the bridge * kwq/KWQKHTMLPart.h: Rearrange things to be a little more logical. Mark isFrameSet() const. added an attributedString function here so it's not inside WebCoreBridge. Added an overload of clearTimers that takes a view parameter. * kwq/KWQKHTMLPart.cpp: (KWQKHTMLPart::isFrameSet): Mark this const. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::clearTimers): Add the overload that takes the view parameter. (KWQKHTMLPart::attributedString): Moved this code in here from the bridge. * kwq/WebCoreBridge.mm: (-[WebCoreBridge selectedAttributedString]): Call the attributedString function in its new home in KWQKHTMLPart. (-[WebCoreBridge attributedStringFrom:startOffset:to:endOffset:]): Ditto. (-[KWQPageState initWithDocument:URL:windowProperties:locationProperties:]): Take a const KURL & instead of a KURL to avoid unnecessary copying. (-[KWQPageState dealloc]): Call the new clearTimers that takes a view parameter. This should fix the crash in autorelease pool deallocation mentioned above. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
hyatt authored
sure blocks track width overflow as well as height overflow and ensure that a layer's dimensions expand to encompass both width and height overflow. Also fixes a bug with line breaking that allowed unbreakable words to actually be broken up when they were the only word on a line. This is wrong and differs from all other browsers, so the patch in bidi.cpp fixes us to match other browsers. (This was required to fix the above bug.) Reviewed by mjs. * khtml/rendering/bidi.cpp: (RenderFlow::findNextLineBreak): * khtml/rendering/render_flow.cpp: (RenderFlow::RenderFlow): (RenderFlow::layout): (RenderFlow::layoutBlockChildren): * khtml/rendering/render_flow.h: * khtml/rendering/render_layer.cpp: (RenderLayer::updateLayerPosition): * khtml/rendering/render_object.cpp: (RenderObject::nodeAtPoint): * khtml/rendering/render_object.h: * khtml/rendering/render_table.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3032 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 12 Dec, 2002 19 commits
-
-
trey authored
I saw a 3% sloth effect from a huge (100k) history. This change cut that cost in half. I think we still have a marginally measurable cost for our worst practical case. Reviewed by rjw * History.subproj/WebHistoryPrivate.m: (-[WebHistoryPrivate insertEntry:atDateIndex:]): Comment. (-[WebHistoryPrivate removeEntryForURLString:]): Use removeIdentical instead of remove, since we don't need to do all the equals comparisons. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3031 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
Reviewed by trey. This change was actually made by trey. It make the "Empty Cache" menu release the page cache. * AppController.m: (-[AppController confirmEmptyCache:]): WebCore: Fixed 3116584. Made letter-spacing, word-spacing, and text-decoration play well together. Reviewed by hyatt. Changes made with trey to enable to release of page cache from the "Empty Cache" menu item in Alex. Reviewed by trey. * khtml/rendering/font.cpp: (Font::drawLineForText): (Font::drawText): * khtml/rendering/font.h: * khtml/rendering/render_text.cpp: (TextSlave::paintDecoration): (RenderText::paintObject): * khtml/rendering/render_text.h: * kwq/KWQPainter.h: * kwq/KWQPainter.mm: (QPainter::drawLineForText): * kwq/WebCoreBridge.h: * kwq/WebCoreBridge.mm: (-[WebCoreBridge dealloc]): (-[WebCoreBridge openURL:reload:headers:lastModified:pageCache:]): (-[KWQPageState invalidate]): (-[KWQPageState dealloc]): * kwq/WebCoreTextRenderer.h: WebKit: Changes to fix 3116584. Reviewed by hyatt. Changes to support emptying the page cache from the "Empty Cache" menu. Reviewed by trey. * ChangeLog: * History.subproj/WebBackForwardList.h: * History.subproj/WebBackForwardList.m: (-[WebBackForwardList clearPageCache]): * History.subproj/WebHistoryItem.m: (+[WebHistoryItem _scheduleReleaseTimer]): (-[WebHistoryItem _scheduleRelease]): (+[WebHistoryItem _releasePageCache:]): (-[WebHistoryItem setHasPageCache:]): * WebCoreSupport.subproj/WebTextRenderer.m: * WebView.subproj/WebFramePrivate.m: (-[WebFrame _opened]): Tests: * html/letterspacing.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kocienda authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3029 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
kocienda authored
Final fix for this bug: Radar 3062858 (REGRESSION: failed login at www.usaa.com doesn't return error text) We were down to a case where submitting the login form with the return key failed since we did not implement either non-standard keyCode (IE-style) or which (Netscape-style) UI event extension for getting the value of a key press. The form submission code depended on sensing the value of the key press by checking one of these properties. Since the "which" property also can be used for mouse events, and fixing this bug could be done by implementing either keyCode or which, I chose to implement keyCode only. * khtml/dom/dom2_events.cpp: Added keyCode function definition. * khtml/dom/dom2_events.h: Added keyCode function declaration. * khtml/ecma/kjs_events.cpp: (DOMUIEvent::getValueProperty): Added new KeyCode attribute. * khtml/ecma/kjs_events.h: New generated file. * khtml/ecma/kjs_events.lut.h: Ditto. * khtml/xml/dom2_eventsimpl.cpp: (KeyEventImpl::KeyEventImpl): Fixed a bug in khtml that prevented the m_keyVal field on KeyEventImpl from ever being set correctly. I guess I am the first person ever to care about that value. :-) git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3028 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
sheridan authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
sheridan authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3025 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
- fixed 3126042 -- Failure to send onkeypress event on key down causes forms to submit incorrectly * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::keyEvent): Fixed the code to send the second event with repeat set equal to true. Before it was constructing the event but never sending it because result was true. Also fixed a problem where it was considering sending a second mouse up event. What we're doing here is a bit of a hack and probably should be fixed -- it seems that the behavior in dispatchKeyEvent where it sends only a down and not a press for the a non-autorepeat event is a KHTML bug that we should fix instead of work around eventually. - fix to something that made this harder to debug * khtml/xml/dom2_eventsimpl.cpp: (KeyEventImpl::KeyEventImpl): Logging the type was showing the wrong type, and I narrowed it down to this code here. Changing m_id after the fact doesn't change the type string, so you need to compute the correct ID and pass it to the constructor. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
flips the geometry calcs to get most incremental images to draw correctly. .mac now slideshows draw with the incorrect sliding behavior while loading. 3083287 has been moved to 0.9/1. Reviewed by darin. * WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer incrementalLoadWithBytes:length:complete:]): (-[WebImageRenderer drawClippedToValidInRect:fromRect:]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
- fixed 3125886 -- Failure to set document onkeypress handler causes return key to submit forms incorrectly The handler was getting ignored because the property setting code never got to the DOMNode level. * khtml/ecma/kjs_dom.cpp: (DOMDocument::tryPut): Pass correct parent class, DOMNode, instead of DOMObject. By passing DOMObject, we skipped all the properties inherited from DOMNode, including onkeypress. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3022 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
- fixed 3125613 -- REGRESSION: resizing frames after clicking on scroll bar doesn't work right The problem was that the mouse dragged events were going to the scroll bar because the new click on the frame resizer didn't fall into the code path that sets _mouseDownView. * kwq/KWQKHTMLPart.h: Add override of khtmlMouseMoveEvent. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::passWidgetMouseDownEventToWidget): Don't set _mouseDownView. This is now handled at the higher level when the mouseDown comes in. (KWQKHTMLPart::khtmlMouseMoveEvent): Added. Pass along mouseDragged: events. I didn't have this before because I don't want or need to pass mouseMoved: events along, but the KHTML mouse move event corresponds to both AppKit mouseDragged and mouseMoved. (KWQKHTMLPart::khtmlMouseReleaseEvent): Don't clear _mouseDownView. This is now handled at the higher level when the mouseUp comes in. (KWQKHTMLPart::passSubframeEventToSubframe): Ditto. (KWQKHTMLPart::mouseDown): Set _mouseDownView to nil; it will be set by passWidgetMouseDownEventToWidget if we end up passing the event down. This is the change that actually fixes the bug mentioned above. (KWQKHTMLPart::mouseUp): Set _mouseDownView to nil after handling the mouseUp. It's OK if we don't clear this out in cases where we don't get a mouseUp event -- we'll get a mouseDown later -- but it's still probably a good idea to clear it when we know the mouse is no longer down. - used update-kwq-assert to update the code that's a shared copy of WebFoundation code * kwq/KWQAssertions.m: (vprintf_stderr_objc): Got the UTF-8 fix I did a while back. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3021 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
trey authored
We call the new SPI. I also had to rework the dissolve steps to get it to non flip the image in Panther in millions (but leave the old code for the Jaguar case). Reviewed by cblu * Misc.subproj/WebNSImageExtras.m: (+[NSImage load]): Call the SPI. (-[NSImage _web_dissolveToFraction:]): Add new way of building the image for Panther. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3020 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
Reviewed by Maciej. - fixed most likely cause of 3125565 -- 2% regression running the PLT for uncached loads * Misc.subproj/WebNSUserDefaultsExtras.m: (+[NSUserDefaults _web_defaultsDidChange]): Added. Clears out cache when defaults change. (+[NSUserDefaults _web_addDefaultsChangeObserver]): Added. Sets up the above to run at the right time. (+[NSUserDefaults _web_acceptLanguageHeaderForPreferredLanguages]): Changed to cache the result in a global and regenerate it when the global is cleared. (+[NSUserDefaults _web_preferredLanguageCode]): Ditto. WebKit: Reviewed by Maciej. - fixed most likely cause of 3125565 -- 2% regression running the PLT for uncached loads Don't recompute the user agent when it doesn't change. It almost never changes. * WebView.subproj/WebController.m: (-[WebController initWithView:controllerSetName:]): Add observer so we know when defaults change. (-[WebController dealloc]): Remove observer. (-[WebController setApplicationNameForUserAgent:]): Clear out computed user agent to force it to be recomputed later. (-[WebController applicationNameForUserAgent]): Just retain since we copied when we stored it so we know it's not mutable. (-[WebController customUserAgent]): Ditto. (-[WebController userAgentForURL:]): Use the cached user agent if it's good. Otherwise compute and cache the user agent string. This means that we will almost never recompute it. * WebView.subproj/WebControllerPrivate.h: Add userAgent field to cache in. * WebView.subproj/WebControllerPrivate.m: (-[WebControllerPrivate dealloc]): Release userAgent. (-[WebController _defaultsDidChange]): Release and nil userAgent. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3019 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mjs authored
Reviewed by Darin. - fixed 3056449 - can't select state at tucows.com * kjs/array_instance.h: * kjs/array_object.cpp: (ArrayInstanceImp::propList): Add numeric proprties that are in special storage. * kjs/array_object.h: * kjs/object.h: Make propList a virtual method. WebCore: Reviewed by Darin. * force-js-clean-timestamp: Update for JavaScriptCore changes. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3018 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
Reviewed by Maciej. - fixed 3125504 -- REGRESSION: Selection not working correctly for text area on http://glish.com/css/7.asp * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::khtmlMousePressEvent): Call makeFirstResponder here explicitly, since we are disabling the makeFirstResponder that normally happens during window event dispatching in WebKit. * kwq/KWQScrollView.h: Define getDocumentView(). * kwq/KWQScrollView.mm: Use getDocumentView() everywhere. (QScrollView::getDocumentView): Define it here. WebKit: Reviewed by Maciej. - fixed 3125504 -- REGRESSION: Selection not working correctly for text area on http://glish.com/css/7.asp The problem is that the text area lost its first responder status because WebHTMLView took the click, and NSWindow wanted WebHTMLView to become first responder too. * WebView.subproj/WebHTMLView.m: (-[WebHTMLView acceptsFirstResponder]): Don't allow the NSWindow to make this the first responder during the early part of mouseDown event handling. But do allow anyone else to make this the first responder, for example from keyboard events, or from calls back from WebCore once we begin mouse-down event handling. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3017 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
Reviewed by Maciej and Richard. - fixed 3125497 -- REGRESSION: Infinite recursion with mouseUp: events The problem was that events could end up back at the same part due to the responder chain. * kwq/KWQKHTMLPart.h: Added mouseDown, mouseDragged, mouseUp, mouseMoved, buttonForCurrentEvent, and stateForCurrentEvent. Remove setCurrentEvent and currentEvent. Renamed handleMouseDownEventForWidget to passWidgetMouseDownEventToWidget. John and I had agreed to this name change before the last commit, but I forgot. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::KWQKHTMLPart): Initialize _sendingEventToSubview to false. No need to initialize _mouseDownWasInSubframe at all since it's only looked at when _mouseDownView is non-nil. (KWQKHTMLPart::keyEvent): Save and restore _currentEvent instead of setting to nil. Use stateForCurrentEvent instead of stateForEvent:. (KWQKHTMLPart::khtmlMousePressEvent): Name change. (KWQKHTMLPart::khtmlMouseDoubleClickEvent): Name change. (KWQKHTMLPart::passWidgetMouseDownEventToWidget): Name change. Set _sendingEventToSubview when sending event to subview. (KWQKHTMLPart::khtmlMouseReleaseEvent): Name change. Set _sendingEventToSubview when sending event to subview. (KWQKHTMLPart::passSubframeEventToSubframe): Name change. Set _sendingEventToSubview when sending event to subview. (KWQKHTMLPart::buttonForCurrentEvent): Added. Similar to code I moved here from WebCoreBridge. (KWQKHTMLPart::stateForCurrentEvent): Added. Similar to code I moved here from WebCoreBridge. (KWQKHTMLPart::mouseDown): Added. Similar to code I moved here from WebCoreBridge, except returns and does nothing if _sendingEventToSubview is set. (KWQKHTMLPart::mouseDragged): Ditto. (KWQKHTMLPart::mouseUp): Ditto. (KWQKHTMLPart::mouseMoved): Added. Similar to code I moved here from WebCoreBridge. * kwq/WebCoreBridge.mm: (-[WebCoreBridge mouseDown:]): Just call _part->mouseDown(). (-[WebCoreBridge mouseDragged:]): Just call _part->mouseDragged(). (-[WebCoreBridge mouseUp:]): Just call _part->mouseUp(). (-[WebCoreBridge mouseMoved:]): Just call _part->mouseMoved(). * kwq/WebCoreBridgePrivate.h: Removed. * WebCore.pbproj/project.pbxproj: Removed WebCoreBridgePrivate.h. WebKit: Reviewed by Maciej and Richard. - fixed reentrancy crash I ran into while debugging infinite recursion bugs * WebView.subproj/WebHTMLViewPrivate.m: (-[WebHTMLView _updateMouseoverWithFakeEvent]): Added. Does part of what _frameOrBoundsChanged did. (-[WebHTMLView _frameOrBoundsChanged]): Schedule the mouseover update to happen soon, rather than doing it right away. If we do it right away, we might reenter because sending a mouse moved event can result in another layout since mouse moved events are the same as mouse dragged events in KHTML. * WebView.subproj/WebHTMLView.m: (-[WebHTMLView viewWillMoveToWindow:]): Cancel the scheduled mouseover update. * WebKit.pbproj/project.pbxproj: Electron uber alles. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3016 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mjs authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3015 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
Fixed 3125583. Don't redraw view under resize bar on mouseup. Reviewed by gramps. * khtml/rendering/render_frames.cpp: (RenderFrameSet::userResize): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mjs authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3013 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
rjw authored
any link. Added additional check to curtail overly zealous ASSERT. Reviewed by mjs. * WebView.subproj/WebControllerPrivate.m: (-[WebController _mainReceivedError:fromDataSource:complete:]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3012 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 11 Dec, 2002 1 commit
-
-
hyatt authored
are 3105714 and 3045965. Also fix margin collapsing churn on thestar by not laying out a second time when collapsing margins make you move unless you contain floats. Reviewed by: gramps * khtml/rendering/bidi.cpp: (RenderFlow::findNextLineBreak): * khtml/rendering/render_flow.cpp: (RenderFlow::layoutBlockChildren); git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3011 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-