1. 11 Jan, 2007 35 commits
    • beidson's avatar
      WebCore: · 3104dbe5
      beidson authored
              Reviewed by Anders
      
              Rewrites HTTP Authentication setting up a more platform-independent structure
      
              * WebCore.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
              (WebCore::FrameLoader::didCancelAuthenticationChallenge):
              * loader/FrameLoader.h:
              * loader/FrameLoaderClient.h:
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::ResourceLoader):
              (WebCore::ResourceLoader::didCancel):
              * loader/ResourceLoader.h:
              (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
              (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
              (WebCore::ResourceLoader::receivedCredential):
              (WebCore::ResourceLoader::receivedRequestToContinueWithoutCredential):
              (WebCore::ResourceLoader::receivedCancellation):
              * loader/mac/FrameLoaderMac.mm:
              * loader/mac/ResourceLoaderMac.mm:
              (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
              (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
              (WebCore::ResourceLoader::receivedCredential):
              (WebCore::ResourceLoader::receivedRequestToContinueWithoutCredential):
              (WebCore::ResourceLoader::receivedCancellation):
              * platform/graphics/svg/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
              (WebCore::SVGEmptyFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::willSendRequest):
              (WebCore::ResourceHandleClient::didReceiveAuthenticationChallenge):
              (WebCore::ResourceHandleClient::didCancelAuthenticationChallenge):
              (WebCore::ResourceHandleClient::receivedCredential):
              (WebCore::ResourceHandleClient::receivedRequestToContinueWithoutCredential):
              (WebCore::ResourceHandleClient::receivedCancellation):
              (WebCore::ResourceHandleClient::willCacheResponse):
              * platform/network/ResourceResponse.h:
              (WebCore::operator!=):
              * platform/network/URLAuthenticationChallenge.cpp: Added.
              (WebCore::URLAuthenticationChallenge::URLAuthenticationChallenge):
              (WebCore::URLAuthenticationChallenge::previousFailureCount):
              (WebCore::URLAuthenticationChallenge::proposedCredential):
              (WebCore::URLAuthenticationChallenge::protectionSpace):
              (WebCore::URLAuthenticationChallenge::failureResponse):
              (WebCore::URLAuthenticationChallenge::error):
              (WebCore::URLAuthenticationChallenge::isNull):
              (WebCore::URLAuthenticationChallenge::nullify):
              (WebCore::operator==):
              (WebCore::operator!=):
              * platform/network/URLAuthenticationChallenge.h: Added.
              (WebCore::URLAuthenticationChallenge::sender):
              (WebCore::URLAuthenticationChallenge::nsURLAuthenticationChallenge):
              * platform/network/URLCredential.cpp: Added.
              (WebCore::URLCredential::URLCredential):
              (WebCore::URLCredential::user):
              (WebCore::URLCredential::password):
              (WebCore::URLCredential::hasPassword):
              (WebCore::URLCredential::persistence):
              (WebCore::operator==):
              * platform/network/URLCredential.h: Added.
              (WebCore::):
              (WebCore::operator!=):
              * platform/network/URLProtectionSpace.cpp: Added.
              (WebCore::URLProtectionSpace::URLProtectionSpace):
              (WebCore::URLProtectionSpace::host):
              (WebCore::URLProtectionSpace::port):
              (WebCore::URLProtectionSpace::serverType):
              (WebCore::URLProtectionSpace::realm):
              (WebCore::URLProtectionSpace::authenticationScheme):
              (WebCore::operator==):
              * platform/network/URLProtectionSpace.h: Added.
              (WebCore::):
              (WebCore::operator!=):
              * platform/network/mac/AuthenticationMac.h: Added.
              * platform/network/mac/AuthenticationMac.mm: Added.
              (WebCore::URLAuthenticationChallenge::URLAuthenticationChallenge):
              (WebCore::mac):
              (WebCore::core):
              * platform/network/mac/ResourceHandleMac.mm:
              (-[WebCoreResourceHandleAsDelegate connection:didReceiveAuthenticationChallenge:]):
              (-[WebCoreResourceHandleAsDelegate connection:didCancelAuthenticationChallenge:]):
              (-[WebCoreResourceHandleAsDelegate useCredential:forAuthenticationChallenge:]):
              (-[WebCoreResourceHandleAsDelegate continueWithoutCredentialForAuthenticationChallenge:]):
              (-[WebCoreResourceHandleAsDelegate cancelAuthenticationChallenge:]):
              * platform/network/mac/ResourceResponseMac.mm:
              (WebCore::operator==):
      
      WebKit:
      
              Reviewed by Anders
      
              Rewrites HTTP Authentication setting up a more platform-independent structure
      
              * WebCoreSupport/WebFrameLoaderClient.h:
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
              (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
              * WebKit.xcodeproj/project.pbxproj:
      
      WebKitQt:
      
              Keep the fancy new FrameLoaderClientQt building with a small api change in WebCore
              Yay for the loader on QT!
      
              * WebCoreSupport/FrameLoaderClientQt.cpp:
              (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
              (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
              * WebCoreSupport/FrameLoaderClientQt.h:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18783 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3104dbe5
    • ggaren's avatar
      JavaScriptCore: · 1c7f3ac2
      ggaren authored
              Reviewed by Anders Carlsson.
      
              Even more cleanup in preparation for fixing <rdar://problem/4608404> 
              WebScriptObject's _executionContext lack of ownership policy causes 
              crashes (e.g., in Dashcode)
              
              Layout tests pass.
              
              Renames:
                  findRootObjectForNativeHandleFunction => createRootObject
                  FindRootObjectForNativeHandleFunctionPtr => CreateRootObjectFunction
                  
              Also removed unnecessary use of "Bindings::" prefix.
      
              * JavaScriptCore.exp:
              * bindings/jni/jni_jsobject.cpp:
              (JavaJSObject::createNative):
              (JavaJSObject::convertValueToJObject):
              (JavaJSObject::convertJObjectToValue):
              * bindings/runtime_root.cpp:
              (KJS::Bindings::RootObject::setCreateRootObject):
              * bindings/runtime_root.h:
              (KJS::Bindings::RootObject::createRootObject):
      
      WebCore:
      
              Reviewed by Anders Carlsson.
              
              Even more cleanup in preparation for fixing <rdar://problem/4608404> 
              WebScriptObject's _executionContext lack of ownership policy causes 
              crashes (e.g., in Dashcode)
              
              Layout tests pass.
              
              Renames:
                  findRootObjectForNativeHandleFunction => createRootObject
                  FindRootObjectForNativeHandleFunctionPtr => createRootObjectFunction
                  rootForView => createRootObject
                  getInstanceForView => getPluginInstanceForWidget
      
              * page/mac/FrameMac.mm:
              (WebCore::FrameMac::getAppletInstanceForWidget): Put the NSView * in a void*
              variable named "nativeHandle" to be more explicit about the fact that JavaScript's
              "nativeHandle" is just an NSView *.
      
              (WebCore::getPluginInstanceForWidget): This function now does the NSView *
              fetching that its callers used to do.
              (WebCore::FrameMac::getEmbedInstanceForWidget): Updated for rename.
              (WebCore::FrameMac::getObjectInstanceForWidget): ditto
      
              * page/mac/WebCoreFrameBridge.mm: Killed the WebCoreBridgeInternal category,
              which was really more of a shmategory.
              (createRootObject): Removed rootObjectForView, folding it into its only
              caller, the similarly named rootForView. Renamed the pair to "createRootObject"
              because that's what they do.
      
              (-[WebCoreFrameBridge init]): Updated for renames
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18782 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      1c7f3ac2
    • andersca's avatar
      Get rid of garbage · 51ba0231
      andersca authored
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18781 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      51ba0231
    • andersca's avatar
      Reviewed by Darin. · 86017599
      andersca authored
              Fix crash on platforms that don't use the new loader yet.
              
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::requestResource):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18780 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      86017599
    • weinig's avatar
      LayoutTests: · bda23728
      weinig authored
              Reviewed by Adam.
      
              - test for http://bugs.webkit.org/show_bug.cgi?id=11449
                Type-to-select in unopened popups doesn't work with Hebrew
      
              * fast/forms/select-type-ahead-non-latin-expected.txt: Added.
              * fast/forms/select-type-ahead-non-latin.html: Added.
      
      WebCore:
      
              Reviewed by Adam.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=11449
                Type-to-select in unopened popups doesn't work with Hebrew
      
              Test: fast/forms/select-type-ahead-non-latin.html
      
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::defaultEventHandler): Changed locale-specific
              isprint() condition to a Unicode isPrintableChar().
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18779 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      bda23728
    • justing's avatar
      LayoutTests: · e3b9b27d
      justing authored
              Reviewed by geoff
              
              <rdar://problem/4889140>
              GMail Editor: List creation fails in new message
      
              * editing/execCommand/insert-list-empty-div-expected.checksum: Added.
              * editing/execCommand/insert-list-empty-div-expected.png: Added.
              * editing/execCommand/insert-list-empty-div-expected.txt: Added.
              * editing/execCommand/insert-list-empty-div.html: Added.
      
      WebCore:
      
              Reviewed by geoff
              
              <rdar://problem/4889140>
              GMail Editor: List creation fails in new message
      
              * editing/InsertListCommand.cpp:
              (WebCore::InsertListCommand::doApply): Inserting the list
              into an empty paragraph not held open by a br or a '\n', 
              will invalidate start and end.  Insert a placeholder and 
              then recompute start and end.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18778 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      e3b9b27d
    • lars's avatar
      This one is not needed any longer neither. · df82f4ec
      lars authored
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18777 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      df82f4ec
    • lars's avatar
      fix compilation of DumpRenderTree. Will hopefully · 8df627b0
      lars authored
      make the built bot happy :)
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18776 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      8df627b0
    • lars's avatar
      remove now unused file. · f4c218a2
      lars authored
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18775 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      f4c218a2
    • ddkilzer's avatar
      WebCore: · 5cbf1c99
      ddkilzer authored
              Reviewed by NOBODY (build fix).
      
              * loader/mac/FrameLoaderMac.mm:  Removed import of LoaderNSURLRequestExtras.h.
              * loader/mac/SubresourceLoaderMac.mm:  Ditto.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18774 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      5cbf1c99
    • staikos's avatar
      Fix compile · 3e2667eb
      staikos authored
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18773 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3e2667eb
    • andersca's avatar
      Fix build. · 088a9065
      andersca authored
              
              * dom/XMLTokenizer.cpp:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedImage.cpp:
              * loader/DocLoader.cpp:
              * loader/loader.cpp:
              * xml/XSLTProcessor.cpp:
              * xml/xmlhttprequest.cpp:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18772 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      088a9065
    • andersca's avatar
      Reviewed by Adam. · 2b9c89e2
      andersca authored
              Loader cleanup, get rid of unused code.
              
              * WebCore.xcodeproj/project.pbxproj:
              * loader/CachedResource.h:
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::requestResource):
              (WebCore::DocLoader::checkCacheObjectStatus):
              * loader/DocLoader.h:
              * loader/LoaderFunctions.h: Removed.
              * loader/mac/CachedResourceMac.mm: Removed.
              * loader/mac/LoaderFunctionsMac.mm: Removed.
              * loader/mac/LoaderNSURLRequestExtras.h: Removed.
              * loader/mac/LoaderNSURLRequestExtras.m: Removed.
              * loader/mac/SubresourceLoaderMac.mm:
              * page/mac/WebCoreFrameBridge.mm:
              * platform/network/ResourceHandle.cpp:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18771 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      2b9c89e2
    • bdakin's avatar
      Better Changelog. · 1678499a
      bdakin authored
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18770 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      1678499a
    • bdakin's avatar
      Reviewed by Adam. · be0e2ee3
      bdakin authored
              Fix for http://bugs.webkit.org/show_bug.cgi?id=12135 REGRESSION: 
              <input> and <textarea> not focused on right click (4908884 in 
              Radar)
      
              * page/EventHandler.cpp:
              (WebCore::EventHandler::sendContextMenuEvent): Ask if we *have* 
              swallowed the event instead of if we *haven't* when deciding to 
              perform a selection.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18769 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      be0e2ee3
    • darin's avatar
      Reviewed by Anders. · de5c3f24
      darin authored
              - fix http://bugs.webkit.org/show_bug.cgi?id=12189
                REGRESSION(r18614-18640): Crash in WebCore::SharedBuffer::hasPlatformData()
      
              * loader/mac/LoaderFunctionsMac.mm: (WebCore::CheckCacheObjectStatus):
              Added null check.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18768 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      de5c3f24
    • darin's avatar
      Reviewed by Mitz. · 9d374e89
      darin authored
              - fix http://bugs.webkit.org/show_bug.cgi?id=12180
                REGRESSION: Double-clicking on JS exception in JS log crashes in -[SharedBufferData initWithSharedBuffer:]
      
              * WebView/WebDataSource.mm: (-[WebDataSource data]): Added null check.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18767 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      9d374e89
    • darin's avatar
      * platform/CharacterNames.h: Oops! horizontalEllipsis != zeroWidthSpace! · d04e9de6
      darin authored
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18766 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d04e9de6
    • lars's avatar
      Start using the loader in the Qt port. · e9b402d8
      lars authored
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18765 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      e9b402d8
    • darin's avatar
      WebCore: · 4ae67fa3
      darin authored
              Reviewed by Hyatt.
      
              - removed a couple Mac bridging classes; put the code in WebKit instead
      
              * WebCore.exp: Updated for new WebKit uses.
      
              * WebCore.xcodeproj/project.pbxproj: Removed files.
              * bridge/mac/WebCoreEncodings.h: Removed.
              * bridge/mac/WebCoreEncodings.mm: Removed.
              * bridge/mac/WebMimeTypeRegistryBridge.h: Removed.
              * bridge/mac/WebMimeTypeRegistryBridge.mm: Removed.
              * platform/mac/WebNSAttributedStringExtras.h: Removed.
              * platform/mac/WebNSAttributedStringExtras.mm: Removed.
      
              * platform/mac/PasteboardMac.mm:
              (WebCore::stripAttachmentCharacters): Added. Moved code from
              WebNSAttributedStringExtras.mm, and fixed a garbage collection problem
              (a global with a plain old retain rather than HardRetain).
              (WebCore::Pasteboard::writeSelection): Updated to use stripAttachmentCharacters.
      
              - removed some DeprecatedCString use
      
              * loader/FrameLoader.cpp: Changed to use String more to eliminate use of
              DeprecatedCString here in the mailto form support. But maybe we can remove
              this entirely. Do we really care about mailto forms any more?
      
              * platform/Pasteboard.h: Removed unneeded DeprecatedCString declaration.
      
              * platform/PlatformString.h: Added replace that takes two strings.
              * platform/StringImpl.h: Ditto.
              * platform/StringImpl.cpp: (WebCore::StringImpl::replace): Ditto.
      
              * platform/TextStream.h: Remove DeprecatedCString case.
              * platform/TextStream.cpp: Ditto.
      
              - made a few more files use CharacterNames.h
      
              * platform/CharacterNames.h: Added some more character names and
              sorted alphabetically.
      
              * bridge/mac/WebCoreStringTruncator.mm:
              (centerTruncateToBuffer): Use character name from CharacterNames.h.
              (rightTruncateToBuffer): Ditto.
              (truncateString): Ditto.
              * platform/mac/FontMac.mm: (WebCore::addDirectionalOverride): Ditto.
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::layoutVerticalBox): Ditto.
              * rendering/bidi.cpp:
              (WebCore::RenderBlock::checkLinesForTextOverflow): Ditto.
      
      WebKit:
      
              Reviewed by Hyatt.
      
              - moved code from a couple WebCore bridging classes here instead
      
              * Misc/WebNSPasteboardExtras.mm:
              (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:]):
              Use MimeTypeRegistry instead of WebMimeTypeRegistryBridge.
      
              * WebView/WebHTMLRepresentation.mm:
              (stringArray): Added. Helper to convert a HashSet to an NSArray.
              (concatenateArrays): Added. Helper to concatenate two NSArray objects.
              (+[WebHTMLRepresentation supportedMIMETypes]): Use MimeTypeRegistry instead of
              WebMimeTypeRegistryBridge. Also fix a potential GC problem by using a RetainPtr
              instead of a [retain] on a global variable.
              (+[WebHTMLRepresentation supportedNonImageMIMETypes]): Ditto.
              (+[WebHTMLRepresentation supportedImageMIMETypes]): Ditto.
      
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView _imageExistsAtPaths:]): Use MimeTypeRegistry instead of
              WebMimeTypeRegistryBridge.
              (-[WebHTMLView _documentFragmentWithPaths:]): Ditto.
      
              * WebView/WebView.mm: (+[WebView _decodeData:]): Moved code here from
              the old WebCoreEncodings class.
      
              * WebKit.xcodeproj/project.pbxproj: Let Xcode have its way with this file.
              Moved WebRenderNode into the appropriate group.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18764 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      4ae67fa3
    • hyatt's avatar
      Land reverted layout tests for the two overflow cases. Although the new... · 19a840a3
      hyatt authored
      Land reverted layout tests for the two overflow cases.  Although the new results were better, there are issues with what I did to achieve them, so for now going back to the (broken) old results.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18763 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      19a840a3
    • hyatt's avatar
      Fix two bugs in positionForCoordinates. (Make it work when you have a... · cd04e4d6
      hyatt authored
              Fix two bugs in positionForCoordinates.  (Make it work when you have a margin in between your border and
              your first child block.)
      
              Rewrite column rebalancing to have two modes: constrained and unconstrained.  In unconstrained mode,
              the system will dynamically rebalance as it loses space to breaks and compute a final intrinsic height
              for the overall block.  In constrained mode, columns flow into the fixed height block, and extra columns
              spill out horizontally in the appropriate direction (RTL/LTR).
      
              Make columns work properly with both LTR and RTL overflow blocks.
      
              Initial column test suite coming soon now that the basic layout is right.
      
              Reviewed by darin
      
              * rendering/RenderBlock.cpp:
              (WebCore:::RenderFlow):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::paintColumns):
              (WebCore::RenderBlock::lowestPosition):
              (WebCore::RenderBlock::rightmostPosition):
              (WebCore::RenderBlock::leftmostPosition):
              (WebCore::RenderBlock::hitTestColumns):
              (WebCore::RenderBlock::positionForCoordinates):
              (WebCore::RenderBlock::availableWidth):
              (WebCore::RenderBlock::calcColumnWidth):
              (WebCore::RenderBlock::layoutColumns):
              (WebCore::RenderBlock::adjustPointToColumnContents):
              * rendering/RenderBlock.h:
              (WebCore::RenderBlock::hasColumns):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18762 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      cd04e4d6
    • hyatt's avatar
      Fix SVG test cases. · 9ec8e5b5
      hyatt authored
      git-svn-id: svn://svn.chromium.org/blink/trunk@18761 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      9ec8e5b5
    • rwlbuis's avatar
      Reviewed by Eric. · ac2f267d
      rwlbuis authored
              http://bugs.webkit.org/show_bug.cgi?id=12201
              Fix image dragging issues with http://www.carto.net/papers/svg/gui/scrollbar/index.svg
      
              Fix calculation of absolute transform so that viewport x,y
              translation is always done, also when viewBox is set. 
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18760 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      ac2f267d
    • hyatt's avatar
      Remove unused variable. · 1d6a72f3
      hyatt authored
      git-svn-id: svn://svn.chromium.org/blink/trunk@18759 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      1d6a72f3
    • hyatt's avatar
      Rework positionForCoordinates to be more efficient and to handle... · e2f61b17
      hyatt authored
              Rework positionForCoordinates to be more efficient and to handle multi-column content.  This entailed
              adding a new field to HitTestResult called localPoint that cached the mouse coordinate in the coordinate
              space of the renderer.
      
              positionForCoordinates now takes local coordinates and so no longer needs to waste time recomputing
              absolute positions over and over again.
      
              Reviewed by darin
      
              * bridge/mac/WebCoreAXObject.mm:
              (-[WebCoreAXObject value]):
              (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
              (-[WebCoreAXObject doAXTextMarkerForPosition:]):
              * dom/Document.cpp:
              (WebCore::Document::prepareMouseEvent):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::contains):
              * editing/visible_units.cpp:
              (WebCore::previousLinePosition):
              (WebCore::nextLinePosition):
              * page/EventHandler.cpp:
              (WebCore::EventHandler::selectClosestWordFromMouseEvent):
              (WebCore::EventHandler::handleMousePressEventDoubleClick):
              (WebCore::EventHandler::handleMousePressEventTripleClick):
              (WebCore::EventHandler::handleMousePressEventSingleClick):
              (WebCore::EventHandler::handleMouseMoveEvent):
              (WebCore::EventHandler::handleMouseReleaseEvent):
              (WebCore::EventHandler::sendContextMenuEvent):
              * page/EventHandler.h:
              * page/MouseEventWithHitTestResults.cpp:
              (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
              * page/MouseEventWithHitTestResults.h:
              (WebCore::MouseEventWithHitTestResults::localPoint):
              * page/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge _visiblePositionForPoint:]):
              * rendering/EllipsisBox.cpp:
              (WebCore::EllipsisBox::nodeAtPoint):
              * rendering/HitTestResult.h:
              (WebCore::HitTestResult::localPoint):
              (WebCore::HitTestResult::setLocalPoint):
              * rendering/InlineFlowBox.cpp:
              (WebCore::InlineFlowBox::nodeAtPoint):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::nodeAtPoint):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::nodeAtPoint):
              (WebCore::RenderBlock::hitTestContents):
              (WebCore::RenderBlock::positionForCoordinates):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::nodeAtPoint):
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::positionForCoordinates):
              * rendering/RenderFlow.cpp:
              (WebCore::RenderFlow::hitTestLines):
              * rendering/RenderInline.cpp:
              (WebCore::RenderInline::positionForCoordinates):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::autoscroll):
              (WebCore::RenderLayer::hitTestLayer):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::updateHitTestResult):
              * rendering/RenderObject.h:
              * rendering/RenderPath.cpp:
              (WebCore::RenderPath::nodeAtPoint):
              * rendering/RenderReplaced.cpp:
              (WebCore::RenderReplaced::positionForCoordinates):
              * rendering/RenderTableRow.cpp:
              (WebCore::RenderTableRow::nodeAtPoint):
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::nodeAtPoint):
              * rendering/RenderText.cpp:
              (WebCore::RenderText::positionForCoordinates):
              * rendering/RootInlineBox.cpp:
              (WebCore::RootInlineBox::nodeAtPoint):
              (WebCore::RootInlineBox::closestLeafChildForXPos):
              * rendering/RootInlineBox.h:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18758 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      e2f61b17
    • staikos's avatar
      Fix Qt build again · bce32c49
      staikos authored
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18757 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      bce32c49
    • bdash's avatar
      2007-01-10 Mitz Pettel <mitz@webkit.org> · 29736ca2
      bdash authored
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=11775
                'Show URLs in Tool Tips' preference is ignored
      
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView _resetCachedWebPreferences:]):
              (-[WebHTMLView setDataSource:]): Added a call to _resetCachedWebPreferences:.
              Added an assertion that the view is not closed, instead of reopening it.
              Reopening should not occur, now that <http://bugs.webkit.org/show_bug.cgi?id=12087>
              is fixed.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18756 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      29736ca2
    • bdash's avatar
      2007-01-10 Kirby White <KWhiteRight@gmail.com> · 80478fb8
      bdash authored
              Reviewed by Darin.
      
              Fixes for http://bugs.webkit.org/show_bug.cgi?id=11841
      
              Set image size to fit alt text when image or input-image element
              has no src attribute, so that those images show their alt text instead
              of showing nothing at all.
      
              * html/HTMLImageElement.cpp:
              (WebCore::HTMLImageElement::attach):
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::attach):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::setImageSizeForAltText):
              (WebCore::RenderImage::imageChanged):
              * rendering/RenderImage.h:
      
      2007-01-10  Kirby White  <KWhiteRight@gmail.com>
      
              Reviewed by Darin.
      
              New and adjusted test cases for
              http://bugs.webkit.org/show_bug.cgi?id=11841
      
              * fast/dom/HTMLImageElement/image-alt-text-expected.checksum: Added.
              * fast/dom/HTMLImageElement/image-alt-text-expected.png: Added.
              * fast/dom/HTMLImageElement/image-alt-text-expected.txt: Added.
              * fast/dom/HTMLImageElement/image-alt-text.html: Added.
              * fast/dom/HTMLImageElement/resources/blue_rect.jpg: Added.
              * fast/dom/HTMLInputElement/input-image-alt-text-expected.checksum: Added.
              * fast/dom/HTMLInputElement/input-image-alt-text-expected.png: Added.
              * fast/dom/HTMLInputElement/input-image-alt-text-expected.txt: Added.
              * fast/dom/HTMLInputElement/input-image-alt-text.html: Added.
              * fast/dom/HTMLInputElement/resources/blue_rect.jpg: Added.
              * fast/forms/focus2-expected.txt:
              * fast/forms/focus2.html:
              * fast/forms/input-value-expected.checksum:
              * fast/forms/input-value-expected.png:
              * fast/forms/input-value-expected.txt:
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18755 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      80478fb8
    • bdash's avatar
      2007-01-11 Mark Rowe <mrowe@apple.com> · 252c0877
      bdash authored
              Build fix.
      
              * rendering/RenderView.cpp:
              (WebCore::RenderView::printing):
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18754 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      252c0877
    • bdash's avatar
      2007-01-10 Mitz Pettel <mitz@webkit.org> · a2440766
      bdash authored
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=9284
                Quirksmode (CSS1): Removing inline border styles is impossible
      
              Test: fast/css/remove-shorthand.html
      
              * css/CSSMutableStyleDeclaration.cpp:
              (WebCore::PropertyLonghand::PropertyLonghand): Added this structure
              containing a pointer to an array if properties and the array's length.
              (WebCore::PropertyLonghand::properties):
              (WebCore::PropertyLonghand::length):
              (WebCore::initShorthandMap): Initialize the mapping from shorthand
              properties to their dependent properties.
              (WebCore::CSSMutableStyleDeclaration::removeProperty): Changed to check
              if the property being removed is a shorthand, and if so, to remove all
              of its dependent properties.
              (WebCore::CSSMutableStyleDeclaration::removePropertiesInSet): Added a
              'notifyChanged' boolean parameter which controls whether this method
              calls setChanged() if it actually removes any property.
              * css/CSSMutableStyleDeclaration.h:
      
      2007-01-10  Mitz Pettel  <mitz@webkit.org>
      
              Reviewed by Darin.
      
              - test for http://bugs.webkit.org/show_bug.cgi?id=9284
                Quirksmode (CSS1): Removing inline border styles is impossible
      
              * fast/css/remove-shorthand-expected.txt: Added.
              * fast/css/remove-shorthand.html: Added.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18753 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      a2440766
    • sfalken's avatar
      2007-01-10 Steve Falkenburg <sfalken@apple.com> · 3ee486bd
      sfalken authored
              Reviewed by Kevin.
      
              Removed unnecessary printing state
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18752 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3ee486bd
    • andersca's avatar
      Reviewed by Maciej. · d1ba6a58
      andersca authored
              Get the Refresh header directly from the ResourceResponse.
              
              * loader/DocumentLoader.h:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::commitProvisionalLoad):
              * loader/mac/DocumentLoaderMac.mm:
              (WebCore::DocumentLoader::getResponseModifiedHeader):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18751 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d1ba6a58
    • ggaren's avatar
      * coding/coding-style.html: Fixed minor validation error. · 0ff3a0fe
      ggaren authored
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18750 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      0ff3a0fe
    • ggaren's avatar
      Reviewed by Beth Dakin. · ef3bafa6
      ggaren authored
              
              Updated coding style guidelines to cover a lot of stuff previously absent.
      
              * coding/coding-style.html:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18749 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      ef3bafa6
  2. 10 Jan, 2007 5 commits
    • bdakin's avatar
      WebCore: · 9e83eb71
      bdakin authored
              Reviewed by John.
      
              Fix for <rdar://problem/4914258> REGRESSION: Search in Google now 
              operates on the current WebView instead of invoking Safari's 
              service
      
              * page/ContextMenuClient.h: New call to the client to search in 
              google.
              * page/ContextMenuController.cpp:
              (WebCore::ContextMenuController::contextMenuItemSelected): Call 
              into the client instead of forming a new url string and loading it.
              * platform/graphics/svg/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyContextMenuClient::searchWithGoogle): New call.
      
      WebKit:
              Reviewed by John.
      
              Fix for <rdar://problem/4914258> REGRESSION: Search in Google now 
              operates on the current WebView instead of invoking Safari's 
              service
      
              * WebCoreSupport/WebContextMenuClient.h:
              * WebCoreSupport/WebContextMenuClient.mm:
              (WebContextMenuClient::searchWithGoogle): Call into WebView to 
              search in Google.
              * WebView/WebViewInternal.h: Make _searchWithGoogleFromMenu 
              available.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18748 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      9e83eb71
    • aroben's avatar
      Rubberstamped by Darin. · 8423169b
      aroben authored
              * page/ContextMenuController.cpp:
              (WebCore::ContextMenuController::contextMenuItemSelected): Pass 0
              instead of an empty Event to FrameLoader::load and
              FrameLoader::urlSelected.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18747 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      8423169b
    • andersca's avatar
      * loader/ResourceLoader.cpp: · 9006d751
      andersca authored
              (WebCore::ResourceLoader::~ResourceLoader):
              Disable assertion (I forgot to do this even though I added the comment!)
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18746 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      9006d751
    • andersca's avatar
      Reviewed and landed by Anders. · cd2529fa
      andersca authored
              Fix case in vcproj file (the GTK+ port uses the vcproj file).
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18745 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      cd2529fa
    • lars's avatar
      Make the Qt build compile again after · 9ee9244a
      lars authored
      the ResourceLoader was made platform
      independent.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18744 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      9ee9244a