1. 23 Sep, 2011 1 commit
    • commit-queue@webkit.org's avatar
      .: Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests · 90680248
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=68198
      
      Patch by Varun Jain <varunjain@google.com> on 2011-09-23
      Reviewed by Dimitri Glazkov.
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore: Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests
      https://bugs.webkit.org/show_bug.cgi?id=68198
      
      Patch by Varun Jain <varunjain@google.com> on 2011-09-23
      Reviewed by Dimitri Glazkov.
      
      Tests: fast/dom/scroll-element-to-rect-centered.html
             fast/dom/scroll-element-to-rect.html
      
      * WebCore.exp.in:
      * page/FrameView.cpp:
      (WebCore::FrameView::scrollElementToRect):
      * page/FrameView.h:
      * testing/Internals.cpp:
      (WebCore::Internals::scrollElementToRect):
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit/chromium: Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests
      https://bugs.webkit.org/show_bug.cgi?id=68198
      
      Patch by Varun Jain <varunjain@google.com> on 2011-09-23
      Reviewed by Dimitri Glazkov.
      
      * public/WebView.h:
      (WebKit::WebView::scrollFocusedNodeIntoRect):
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::scrollFocusedNodeIntoRect):
      
      Source/WebKit2: Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests
      https://bugs.webkit.org/show_bug.cgi?id=68198
      
      Patch by Varun Jain <varunjain@google.com> on 2011-09-23
      Reviewed by Dimitri Glazkov.
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      LayoutTests: Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests
      https://bugs.webkit.org/show_bug.cgi?id=68198
      
      Patch by Varun Jain <varunjain@google.com> on 2011-09-23
      Reviewed by Dimitri Glazkov.
      
      * fast/dom/scroll-element-to-rect-centered-expected.txt: Added.
      * fast/dom/scroll-element-to-rect-centered.html: Added.
      * fast/dom/scroll-element-to-rect-expected.txt: Added.
      * fast/dom/scroll-element-to-rect.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95890 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      90680248
  2. 15 Sep, 2011 1 commit
  3. 02 Sep, 2011 1 commit
  4. 23 Aug, 2011 1 commit
    • jamesr@google.com's avatar
      [chromium] Need a way to test lost compositor context recovery · ae2928d6
      jamesr@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=66820
      
      Reviewed by Kenneth Russell.
      
      Source/WebCore:
      
      Adds support for recreating a context as if it was lost, and fixes
      compositeAndReadback() to attempt context recovery.
      
      Test: platform/chromium/compositing/lost-compositor-context.html
      
      * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
      (WebCore::CCLayerTreeHost::compositeAndReadback):
      (WebCore::CCLayerTreeHost::loseCompositorContext):
      * platform/graphics/chromium/cc/CCLayerTreeHost.h:
      
      Source/WebKit/chromium:
      
      Adds a testing-only API to simulate a lost compositor context.
      
      * public/WebView.h:
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::loseCompositorContext):
      * src/WebViewImpl.h:
      
      Tools:
      
      Exposes a LayoutTestController interface in chromium to simulate a
      lost compositor context.
      
      * DumpRenderTree/chromium/LayoutTestController.cpp:
      (LayoutTestController::LayoutTestController):
      (LayoutTestController::loseCompositorContext):
      * DumpRenderTree/chromium/LayoutTestController.h:
      
      LayoutTests:
      
      Adds a simple test for losing the compositor context in a recoverable
      way on a composited page. Tests that we recover without crashing and
      render the updated content on the next frame.
      
      * platform/chromium/compositing/lost-compositor-context.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93681 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ae2928d6
  5. 19 Aug, 2011 1 commit
  6. 18 Aug, 2011 1 commit
  7. 12 Aug, 2011 3 commits
  8. 03 Aug, 2011 2 commits
    • commit-queue@webkit.org's avatar
      Implement EventSender.scalePageBy() · 66589daf
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=58013
      
      Patch by Kentaro Hara <haraken@google.com> on 2011-08-03
      Reviewed by Darin Fisher.
      
      Implemented EventSender.scalePageBy(f, x, y), which scales a page by a factor of f
      and then sets a scroll position to (x, y). Enabled the tests that had been waiting
      for the implementation of EventSender.scalePageBy(f, x, y).
      
      Source/WebKit/chromium:
      
      Tests: compositing/scaling/tiled-layer-recursion.html
             fast/repaint/scale-page-shrink.html
             fast/dom/Element/scale-page-client-rects.html
             fast/dom/Range/scale-page-client-rects.html
             fast/events/scroll-in-scaled-page-with-overflow-hidden.html
             fast/dom/Element/scale-page-bounding-client-rect.html
             fast/dom/Range/scale-page-bounding-client-rect.html
      
      * public/WebView.h:
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::scalePage): A wrapper method for scalePage() in WebCore.
      * src/WebViewImpl.h:
      
      Tools:
      
      Tests: compositing/scaling/tiled-layer-recursion.html
             fast/repaint/scale-page-shrink.html
             fast/dom/Element/scale-page-client-rects.html
             fast/dom/Range/scale-page-client-rects.html
             fast/events/scroll-in-scaled-page-with-overflow-hidden.html
             fast/dom/Element/scale-page-bounding-client-rect.html
             fast/dom/Range/scale-page-bounding-client-rect.html
      
      * DumpRenderTree/chromium/EventSender.cpp:
      (EventSender::EventSender): Added bindings for scalePageBy().
      (EventSender::scalePageBy): A wrapper method for scalePage() in WebView.
      * DumpRenderTree/chromium/EventSender.h:
      * DumpRenderTree/chromium/TestShell.cpp:
      (TestShell::resetTestController): Resets the scale factor to 1.
      
      LayoutTests:
      
      * platform/chromium-linux/compositing/scaling/tiled-layer-recursion-expected.png: Added.
      * platform/chromium-linux/fast/repaint/scale-page-shrink-expected.png: Added.
      * platform/chromium-linux/fast/repaint/scale-page-shrink-expected.txt: Added.
      * platform/chromium-mac/fast/dom/Element/scale-page-bounding-client-rect-expected.txt: Removed.
      * platform/chromium-mac/fast/dom/Range/scale-page-bounding-client-rect-expected.txt: Removed.
      * platform/chromium-win/fast/dom/Element/scale-page-bounding-client-rect-expected.txt: Removed.
      * platform/chromium-win/fast/dom/Element/scale-page-client-rects-expected.txt: Removed.
      * platform/chromium-win/fast/dom/Range/scale-page-bounding-client-rect-expected.txt: Removed.
      * platform/chromium-win/fast/dom/Range/scale-page-client-rects-expected.txt: Removed.
      * platform/chromium/test_expectations.txt: Enabled one test. Enabled two tests for chromium-linux.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      66589daf
    • darin@chromium.org's avatar
      2011-08-03 Darin Fisher <darin@chromium.org> · 9fd4472d
      darin@chromium.org authored
              [Chromium] Rename WEBKIT_API to WEBKIT_EXPORT.
              https://bugs.webkit.org/show_bug.cgi?id=65649
      
              Reviewed by Adam Barth.
      
              * README:
              * public/WebAccessibilityCache.h:
              * public/WebAccessibilityObject.h:
              * public/WebArrayBufferView.h:
              * public/WebAttribute.h:
              * public/WebAudioBus.h:
              * public/WebBindings.h:
              * public/WebBlobData.h:
              * public/WebBlobRegistry.h:
              * public/WebCString.h:
              * public/WebCache.h:
              * public/WebColor.h:
              * public/WebCommon.h:
              * public/WebCrossOriginPreflightResultCache.h:
              * public/WebDOMEvent.h:
              * public/WebDOMEventListener.h:
              * public/WebDOMMouseEvent.h:
              * public/WebDOMMutationEvent.h:
              * public/WebDOMStringList.h:
              * public/WebData.h:
              * public/WebDatabase.h:
              * public/WebDevToolsAgent.h:
              * public/WebDevToolsFrontend.h:
              * public/WebDeviceOrientationClientMock.h:
              * public/WebDeviceOrientationController.h:
              * public/WebDocument.h:
              * public/WebDocumentType.h:
              * public/WebDragData.h:
              * public/WebElement.h:
              * public/WebFont.h:
              * public/WebFontCache.h:
              * public/WebFormControlElement.h:
              * public/WebFormElement.h:
              * public/WebFrame.h:
              * public/WebGeolocationClientMock.h:
              * public/WebGeolocationController.h:
              * public/WebGeolocationError.h:
              * public/WebGeolocationPermissionRequest.h:
              * public/WebGeolocationPermissionRequestManager.h:
              * public/WebGeolocationPosition.h:
              * public/WebGlyphCache.h:
              * public/WebHTTPBody.h:
              * public/WebHTTPLoadInfo.h:
              * public/WebHistoryItem.h:
              * public/WebIDBDatabaseError.h:
              * public/WebIDBFactory.h:
              * public/WebIDBKey.h:
              * public/WebIDBKeyPath.h:
              * public/WebIDBKeyRange.h:
              * public/WebImage.h:
              * public/WebImageDecoder.h:
              * public/WebInputElement.h:
              * public/WebInputEvent.h:
              * public/WebKit.h:
              * public/WebLabelElement.h:
              * public/WebMediaElement.h:
              * public/WebNamedNodeMap.h:
              * public/WebNetworkStateNotifier.h:
              * public/WebNode.h:
              * public/WebNodeCollection.h:
              * public/WebNodeList.h:
              * public/WebNotification.h:
              * public/WebOptionElement.h:
              * public/WebPageSerializer.h:
              * public/WebPasswordFormData.h:
              * public/WebPerformance.h:
              * public/WebPluginDocument.h:
              * public/WebPopupMenu.h:
              * public/WebRange.h:
              * public/WebRegularExpression.h:
              * public/WebRuntimeFeatures.h:
              * public/WebScriptController.h:
              * public/WebScrollbar.h:
              * public/WebSearchableFormData.h:
              * public/WebSecurityOrigin.h:
              * public/WebSecurityPolicy.h:
              * public/WebSelectElement.h:
              * public/WebSerializedScriptValue.h:
              * public/WebSharedWorker.h:
              * public/WebSpeechInputControllerMock.h:
              * public/WebSpeechInputResult.h:
              * public/WebStorageEventDispatcher.h:
              * public/WebStorageNamespace.h:
              * public/WebString.h:
              * public/WebTestingSupport.h:
              * public/WebThreadSafeData.h:
              * public/WebURLLoadTiming.h:
              * public/WebURLRequest.h:
              * public/WebURLResponse.h:
              * public/WebView.h:
              * public/WebWorker.h:
              * public/gtk/WebFontInfo.h:
              * public/gtk/WebInputEventFactory.h:
              * public/linux/WebFontRenderStyle.h:
              * public/linux/WebFontRendering.h:
              * public/linux/WebRenderTheme.h:
              * public/mac/WebInputEventFactory.h:
              * public/mac/WebScreenInfoFactory.h:
              * public/mac/WebSubstringUtil.h:
              * public/win/WebInputEventFactory.h:
              * public/win/WebScreenInfoFactory.h:
              * public/x11/WebScreenInfoFactory.h:
              * tests/WebUnitTests.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92322 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9fd4472d
  9. 14 Jul, 2011 1 commit
    • isherman@chromium.org's avatar
      Rename AutoFill -> Autofill and autoFill -> autofill · 4a7c74a9
      isherman@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=64333
      http://code.google.com/p/chromium/issues/detail?id=72758
      
      Reviewed by Darin Fisher.
      
      * WebKit.gyp:
      * public/WebAutofillClient.h:
      (WebKit::WebAutofillClient::didAcceptAutofillSuggestion):
      (WebKit::WebAutofillClient::didSelectAutofillSuggestion):
      (WebKit::WebAutofillClient::didClearAutofillSelection):
      (WebKit::WebAutofillClient::removeAutocompleteSuggestion):
      (WebKit::WebAutofillClient::textFieldDidBeginEditing):
      (WebKit::WebAutofillClient::textFieldDidEndEditing):
      (WebKit::WebAutofillClient::textFieldDidChange):
      (WebKit::WebAutofillClient::textFieldDidReceiveKeyDown):
      (WebKit::WebAutofillClient::~WebAutofillClient):
      * public/WebNode.h:
      * public/WebView.h:
      * src/AutofillPopupMenuClient.cpp:
      (WebKit::AutofillPopupMenuClient::AutofillPopupMenuClient):
      (WebKit::AutofillPopupMenuClient::~AutofillPopupMenuClient):
      (WebKit::AutofillPopupMenuClient::getSuggestionsCount):
      (WebKit::AutofillPopupMenuClient::getSuggestion):
      (WebKit::AutofillPopupMenuClient::getLabel):
      (WebKit::AutofillPopupMenuClient::getIcon):
      (WebKit::AutofillPopupMenuClient::removeSuggestionAtIndex):
      (WebKit::AutofillPopupMenuClient::canRemoveSuggestionAtIndex):
      (WebKit::AutofillPopupMenuClient::valueChanged):
      (WebKit::AutofillPopupMenuClient::selectionChanged):
      (WebKit::AutofillPopupMenuClient::selectionCleared):
      (WebKit::AutofillPopupMenuClient::itemText):
      (WebKit::AutofillPopupMenuClient::itemLabel):
      (WebKit::AutofillPopupMenuClient::itemIcon):
      (WebKit::AutofillPopupMenuClient::itemIsEnabled):
      (WebKit::AutofillPopupMenuClient::itemStyle):
      (WebKit::AutofillPopupMenuClient::menuStyle):
      (WebKit::AutofillPopupMenuClient::clientPaddingLeft):
      (WebKit::AutofillPopupMenuClient::clientPaddingRight):
      (WebKit::AutofillPopupMenuClient::popupDidHide):
      (WebKit::AutofillPopupMenuClient::itemIsSeparator):
      (WebKit::AutofillPopupMenuClient::itemIsWarning):
      (WebKit::AutofillPopupMenuClient::setTextFromItem):
      (WebKit::AutofillPopupMenuClient::fontSelector):
      (WebKit::AutofillPopupMenuClient::hostWindow):
      (WebKit::AutofillPopupMenuClient::createScrollbar):
      (WebKit::AutofillPopupMenuClient::initialize):
      (WebKit::AutofillPopupMenuClient::setSuggestions):
      (WebKit::AutofillPopupMenuClient::convertListIndexToInternalIndex):
      (WebKit::AutofillPopupMenuClient::getWebView):
      (WebKit::AutofillPopupMenuClient::textFieldStyle):
      * src/AutofillPopupMenuClient.h:
      (WebKit::AutofillPopupMenuClient::itemToolTip):
      (WebKit::AutofillPopupMenuClient::itemAccessibilityText):
      (WebKit::AutofillPopupMenuClient::clientInsetLeft):
      (WebKit::AutofillPopupMenuClient::clientInsetRight):
      (WebKit::AutofillPopupMenuClient::listSize):
      (WebKit::AutofillPopupMenuClient::selectedIndex):
      (WebKit::AutofillPopupMenuClient::itemIsLabel):
      (WebKit::AutofillPopupMenuClient::itemIsSelected):
      (WebKit::AutofillPopupMenuClient::shouldPopOver):
      (WebKit::AutofillPopupMenuClient::valueShouldChangeOnHotTrack):
      (WebKit::AutofillPopupMenuClient::getTextField):
      (WebKit::AutofillPopupMenuClient::getSelectedIndex):
      (WebKit::AutofillPopupMenuClient::setSelectedIndex):
      * src/EditorClientImpl.cpp:
      (WebKit::EditorClientImpl::textFieldDidBeginEditing):
      (WebKit::EditorClientImpl::textFieldDidEndEditing):
      (WebKit::EditorClientImpl::textDidChangeInTextField):
      (WebKit::EditorClientImpl::doAutofill):
      (WebKit::EditorClientImpl::doTextFieldCommandFromEvent):
      * src/WebInputElement.cpp:
      (WebKit::WebInputElement::setAutofilled):
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::setAutofillClient):
      (WebKit::WebViewImpl::WebViewImpl):
      (WebKit::WebViewImpl::mouseDown):
      (WebKit::WebViewImpl::autocompleteHandleKeyEvent):
      (WebKit::WebViewImpl::hideAutofillPopup):
      (WebKit::WebViewImpl::setFocus):
      (WebKit::WebViewImpl::applyAutofillSuggestions):
      (WebKit::WebViewImpl::hidePopups):
      (WebKit::WebViewImpl::refreshAutofillPopup):
      * src/WebViewImpl.h:
      (WebKit::WebViewImpl::autofillClient):
      (WebKit::WebViewImpl::autofillPopupDidHide):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@91004 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4a7c74a9
  10. 09 May, 2011 1 commit
    • commit-queue@webkit.org's avatar
      2011-05-09 Shishir Agrawal <shishir@chromium.org> · 084ff96e
      commit-queue@webkit.org authored
              Reviewed by Tony Gentilcore.
      
              Implement Page Visibility API.
              https://bugs.webkit.org/show_bug.cgi?id=54181
      
              * fast/events/page-visibility-iframe-delete-test-expected.txt: Added.
              * fast/events/page-visibility-iframe-delete-test.html: Added.
              * fast/events/page-visibility-iframe-move-test-expected.txt: Added.
              * fast/events/page-visibility-iframe-move-test.html: Added.
              * fast/events/page-visibility-iframe-propagation-test-expected.txt: Added.
              * fast/events/page-visibility-iframe-propagation-test.html: Added.
              * fast/events/page-visibility-transition-test-expected.txt: Added.
              * fast/events/page-visibility-transition-test.html: Added.
              * fast/events/resources/page-visibility-iframe-delete-test-frame.html: Added.
              * fast/events/resources/page-visibility-iframe-move-new-page.html: Added.
              * platform/chromium/test_expectations.txt:
              * platform/gtk/Skipped:
              * platform/mac/Skipped:
              * platform/qt/Skipped:
              * platform/win/Skipped:
      2011-05-09  Shishir Agrawal  <shishir@chromium.org>
      
              Reviewed by Tony Gentilcore.
      
              Implement Page Visibility API.
              https://bugs.webkit.org/show_bug.cgi?id=54181
      
              Tests: fast/events/page-visibility-iframe-delete-test.html
                     fast/events/page-visibility-iframe-move-test.html
                     fast/events/page-visibility-iframe-propagation-test.html
                     fast/events/page-visibility-transition-test.html
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/Document.cpp:
              (WebCore::Document::visibilityState):
              (WebCore::Document::webkitVisibilityState):
              (WebCore::Document::webkitIsVisible):
              (WebCore::Document::dispatchVisibilityStateChangeEvent):
              * dom/Document.h:
              * dom/Document.idl:
              * dom/EventNames.h:
              * page/Frame.cpp:
              (WebCore::Frame::dispatchVisibilityStateChangeEvent):
              * page/Frame.h:
              * page/Page.cpp:
              (WebCore::Page::Page):
              (WebCore::Page::setVisibilityState):
              (WebCore::Page::visibilityState):
              * page/Page.h:
              * page/PageVisibilityState.cpp: Added.
              (WebCore::GetPageVisibilityStateString):
              * page/PageVisibilityState.h: Added.
      2011-05-09  Shishir Agrawal  <shishir@chromium.org>
      
              Reviewed by Tony Gentilcore.
      
              Implement Page Visibility API.
              https://bugs.webkit.org/show_bug.cgi?id=54181
      
              * WebKit.gyp:
              * public/WebPageVisibilityState.h: Added.
              * public/WebView.h:
              (WebKit::WebView::setVisibilityState):
              * public/WebViewClient.h:
              (WebKit::WebViewClient::visibilityState):
              * src/AssertMatchingEnums.cpp:
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::WebViewImpl):
              (WebKit::WebViewImpl::setVisibilityState):
              * src/WebViewImpl.h:
      2011-05-09  Shishir Agrawal  <shishir@chromium.org>
      
              Reviewed by Tony Gentilcore.
      
              Implement Page Visibility API.
              https://bugs.webkit.org/show_bug.cgi?id=54181
      
              * DumpRenderTree/LayoutTestController.cpp:
              (setPageVisibilityCallback):
              (resetPageVisibilityCallback):
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              (LayoutTestController::setPageVisibility):
              (LayoutTestController::resetPageVisibility):
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::LayoutTestController):
              (LayoutTestController::resetPageVisibility):
              (LayoutTestController::setPageVisibility):
              * DumpRenderTree/chromium/LayoutTestController.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86047 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      084ff96e
  11. 28 Apr, 2011 1 commit
    • jam@chromium.org's avatar
      2011-04-28 John Abd-El-Malek <jam@chromium.org> · 026a51a3
      jam@chromium.org authored
              Reviewed by Darin Fisher.
      
              [chromium] Add a WebPermissionClient to be used for checking permissions of features
              https://bugs.webkit.org/show_bug.cgi?id=59720
      
              * public/WebFrameClient.h:
              (WebKit::WebFrameClient::allowPlugins):
              (WebKit::WebFrameClient::didNotAllowPlugins):
              (WebKit::WebFrameClient::allowImages):
              (WebKit::WebFrameClient::allowScript):
              (WebKit::WebFrameClient::allowDatabase):
              (WebKit::WebFrameClient::didNotAllowScript):
              * public/WebPermissionClient.h: Added.
              (WebKit::WebPermissionClient::allowDatabase):
              (WebKit::WebPermissionClient::allowImages):
              (WebKit::WebPermissionClient::allowPlugins):
              (WebKit::WebPermissionClient::allowScript):
              (WebKit::WebPermissionClient::allowScriptExtension):
              (WebKit::WebPermissionClient::allowReadFromClipboard):
              (WebKit::WebPermissionClient::allowWriteToClipboard):
              (WebKit::WebPermissionClient::didNotAllowPlugins):
              (WebKit::WebPermissionClient::didNotAllowScript):
              (WebKit::WebPermissionClient::~WebPermissionClient):
              * public/WebView.h:
              * public/WebViewClient.h:
              (WebKit::WebViewClient::didEndEditing):
              * src/DatabaseObserver.cpp:
              (WebCore::DatabaseObserver::canEstablishDatabase):
              * src/EditorClientImpl.cpp:
              (WebKit::EditorClientImpl::toggleContinuousSpellChecking):
              (WebKit::EditorClientImpl::canCopyCut):
              (WebKit::EditorClientImpl::canPaste):
              * src/FrameLoaderClientImpl.cpp:
              (WebKit::FrameLoaderClientImpl::allowScriptExtension):
              (WebKit::FrameLoaderClientImpl::allowJavaScript):
              (WebKit::FrameLoaderClientImpl::allowPlugins):
              (WebKit::FrameLoaderClientImpl::allowImages):
              (WebKit::FrameLoaderClientImpl::didNotAllowScript):
              (WebKit::FrameLoaderClientImpl::didNotAllowPlugins):
              * src/WebFrameImpl.cpp:
              (WebKit::WebFrameImpl::enableContinuousSpellChecking):
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::setAutoFillClient):
              (WebKit::WebViewImpl::setPermissionClient):
              (WebKit::WebViewImpl::WebViewImpl):
              * src/WebViewImpl.h:
              (WebKit::WebViewImpl::permissionClient):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      026a51a3
  12. 12 Apr, 2011 1 commit
  13. 30 Mar, 2011 1 commit
    • jam@chromium.org's avatar
      2011-03-29 John Abd-El-Malek <jam@chromium.org> · 755b87b4
      jam@chromium.org authored
              Reviewed by Tony Chang.
      
              [chromium]: Remove the code that called WebViewClient for spelling now that chromium is updated
              https://bugs.webkit.org/show_bug.cgi?id=57396
      
              * DEPS:
              * public/WebFrame.h:
              * public/WebView.h:
              * public/WebViewClient.h:
              (WebKit::WebViewClient::handleCurrentKeyboardEvent):
              * src/EditorClientImpl.cpp:
              (WebKit::EditorClientImpl::checkSpellingOfString):
              (WebKit::EditorClientImpl::requestCheckingOfString):
              (WebKit::EditorClientImpl::getAutoCorrectSuggestionForMisspelledWord):
              (WebKit::EditorClientImpl::updateSpellingUIWithMisspelledWord):
              (WebKit::EditorClientImpl::showSpellingUI):
              (WebKit::EditorClientImpl::spellingUIIsShowing):
              * src/WebViewImpl.cpp:
              (WebKit::WebView::create):
              * src/WebViewImpl.h:
              * src/WebWorkerBase.cpp:
              (WebKit::WebWorkerBase::initializeLoader):
              * tests/PopupMenuTest.cpp:
              (WebKit::SelectPopupMenuTest::SetUp):
              * tests/WebFrameTest.cpp:
              (WebKit::TEST_F):
              * tests/WebPageSerializerTest.cpp:
              (WebKit::WebPageSerializerTest::SetUp):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@82481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      755b87b4
  14. 25 Mar, 2011 1 commit
    • jam@chromium.org's avatar
      2011-03-24 John Abd-El-Malek <jam@chromium.org> · c8a1446b
      jam@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              [chromium] Add setters for various client interfaces, and add WebSpellCheckClient
              https://bugs.webkit.org/show_bug.cgi?id=57070
      
              * public/WebSpellCheckClient.h: Added.
              (WebKit::WebSpellCheckClient::spellCheck):
              (WebKit::WebSpellCheckClient::requestCheckingOfText):
              (WebKit::WebSpellCheckClient::autoCorrectWord):
              (WebKit::WebSpellCheckClient::showSpellingUI):
              (WebKit::WebSpellCheckClient::isShowingSpellingUI):
              (WebKit::WebSpellCheckClient::updateSpellingUIWithMisspelledWord):
              (WebKit::WebSpellCheckClient::~WebSpellCheckClient):
              * public/WebView.h:
              * public/WebViewClient.h:
              * src/EditorClientImpl.cpp:
              (WebKit::EditorClientImpl::checkSpellingOfString):
              (WebKit::EditorClientImpl::requestCheckingOfString):
              (WebKit::EditorClientImpl::getAutoCorrectSuggestionForMisspelledWord):
              (WebKit::EditorClientImpl::updateSpellingUIWithMisspelledWord):
              (WebKit::EditorClientImpl::showSpellingUI):
              (WebKit::EditorClientImpl::spellingUIIsShowing):
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::setWebDevToolsAgentClient):
              (WebKit::WebViewImpl::setWebAutoFillClient):
              (WebKit::WebViewImpl::setWebSpellCheckClient):
              (WebKit::WebViewImpl::WebViewImpl):
              * src/WebViewImpl.h:
              (WebKit::WebViewImpl::spellCheckClient):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@81987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8a1446b
  15. 22 Mar, 2011 2 commits
  16. 02 Mar, 2011 1 commit
    • dcheng@chromium.org's avatar
      2011-03-02 Daniel Cheng <dcheng@chromium.org> · 3697bf1b
      dcheng@chromium.org authored
              Reviewed by David Levin.
      
              Manually revert ChromiumDataObject changes.
              https://bugs.webkit.org/show_bug.cgi?id=55627
      
              No new tests since no functionality should change.
      
              * WebCore.gypi:
              * editing/chromium/EditorChromium.cpp:
              (WebCore::Editor::newGeneralClipboard):
              * page/chromium/EventHandlerChromium.cpp:
              (WebCore::EventHandler::createDraggingClipboard):
              * platform/chromium/ChromiumDataObject.cpp:
              (WebCore::ChromiumDataObject::clearData):
              (WebCore::ChromiumDataObject::clearAll):
              (WebCore::ChromiumDataObject::clearAllExceptFiles):
              (WebCore::ChromiumDataObject::hasData):
              (WebCore::ChromiumDataObject::types):
              (WebCore::ChromiumDataObject::getData):
              (WebCore::ChromiumDataObject::setData):
              (WebCore::ChromiumDataObject::ChromiumDataObject):
              * platform/chromium/ChromiumDataObject.h:
              (WebCore::ChromiumDataObject::create):
              (WebCore::ChromiumDataObject::copy):
              (WebCore::ChromiumDataObject::urlTitle):
              (WebCore::ChromiumDataObject::setUrlTitle):
              (WebCore::ChromiumDataObject::htmlBaseUrl):
              (WebCore::ChromiumDataObject::setHtmlBaseUrl):
              (WebCore::ChromiumDataObject::containsFilenames):
              (WebCore::ChromiumDataObject::filenames):
              (WebCore::ChromiumDataObject::setFilenames):
              (WebCore::ChromiumDataObject::fileExtension):
              (WebCore::ChromiumDataObject::setFileExtension):
              (WebCore::ChromiumDataObject::fileContentFilename):
              (WebCore::ChromiumDataObject::setFileContentFilename):
              (WebCore::ChromiumDataObject::fileContent):
              (WebCore::ChromiumDataObject::setFileContent):
              * platform/chromium/ClipboardChromium.cpp:
              * platform/chromium/ClipboardChromium.h:
      2011-03-02  Daniel Cheng  <dcheng@chromium.org>
      
              Reviewed by David Levin.
      
              Manually revert ChromiumDataObject changes.
              https://bugs.webkit.org/show_bug.cgi?id=55627
      
              * public/WebView.h:
              * src/WebDragData.cpp:
              (WebKit::WebDragData::initialize):
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::dragTargetDragEnter):
              * src/WebViewImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3697bf1b
  17. 16 Jan, 2011 1 commit
  18. 10 Jan, 2011 1 commit
    • jam@chromium.org's avatar
      2011-01-10 John Abd-El-Malek <jam@chromium.org> · 9a5ace37
      jam@chromium.org authored
              Reviewed by James Robinson.
      
              [chromium] Call WebAutoFillClient instead of WebViewClient for autofill related callbacks
              https://bugs.webkit.org/show_bug.cgi?id=52169
      
              * public/WebView.h:
              * public/WebViewClient.h:
              (WebKit::WebViewClient::didUpdateInspectorSetting):
              * src/AutoFillPopupMenuClient.cpp:
              (WebKit::AutoFillPopupMenuClient::valueChanged):
              (WebKit::AutoFillPopupMenuClient::selectionChanged):
              (WebKit::AutoFillPopupMenuClient::selectionCleared):
              (WebKit::AutoFillPopupMenuClient::popupDidHide):
              * src/EditorClientImpl.cpp:
              (WebKit::EditorClientImpl::textFieldDidBeginEditing):
              (WebKit::EditorClientImpl::textFieldDidEndEditing):
              (WebKit::EditorClientImpl::textDidChangeInTextField):
              (WebKit::EditorClientImpl::doAutofill):
              (WebKit::EditorClientImpl::onAutocompleteSuggestionAccepted):
              (WebKit::EditorClientImpl::doTextFieldCommandFromEvent):
              * src/WebViewImpl.cpp:
              (WebKit::WebView::create):
              (WebKit::WebViewImpl::WebViewImpl):
              (WebKit::WebViewImpl::autocompleteHandleKeyEvent):
              * src/WebViewImpl.h:
              (WebKit::WebViewImpl::autoFillClient):
              * src/WebWorkerBase.cpp:
              (WebKit::WebWorkerBase::initializeLoader):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75448 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9a5ace37
  19. 13 Dec, 2010 1 commit
  20. 15 Nov, 2010 1 commit
    • commit-queue@webkit.org's avatar
      2010-11-15 Ilya Sherman <isherman@chromium.org> · 13ee6517
      commit-queue@webkit.org authored
              Reviewed by Kent Tamura.
      
              Add capability for displaying warnings to autofill popup
              Warnings are displayed in dark gray italic.
              https://bugs.webkit.org/show_bug.cgi?id=49291
              http://code.google.com/p/chromium/issues/detail?id=58509
      
              * platform/chromium/PopupMenuChromium.cpp:
              (WebCore::PopupListBox::getRowFont):
                Use item-specific font, not just the generic menu font.
              (WebCore::PopupListBox::selectIndex):
                Updated to clear the selection when hovering over a non-selectable item.
              * platform/chromium/PopupMenuChromium.h: Minor cleanup
      2010-11-15  Ilya Sherman  <isherman@chromium.org>
      
              Reviewed by Kent Tamura.
      
              Add capability for displaying warnings to autofill popup
              Warnings are displayed in dark gray italic.
              https://bugs.webkit.org/show_bug.cgi?id=49291
              http://code.google.com/p/chromium/issues/detail?id=58509
      
              * src/AutoFillPopupMenuClient.cpp:
              (WebKit::AutoFillPopupMenuClient::canRemoveSuggestionAtIndex):
                Updated logic -- can only remove Autocomplete suggestions, which have unique ID 0.
              (WebKit::AutoFillPopupMenuClient::itemIsEnabled): False for warnings.
              (WebKit::AutoFillPopupMenuClient::itemStyle): Dark gray italic for warnings.
              (WebKit::AutoFillPopupMenuClient::menuStyle): Variable name changed.
              (WebKit::AutoFillPopupMenuClient::itemIsWarning): True for unique ID < 0.
              (WebKit::AutoFillPopupMenuClient::initialize): Updated cached styles (see above).
              * src/AutoFillPopupMenuClient.h: Added itemIsEnabled(), variable to cache warning style.
              * src/WebViewImpl.cpp: Minor cleanup.
              (WebKit::WebViewImpl::applyAutoFillSuggestions):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      13ee6517
  21. 21 Oct, 2010 1 commit
    • jcivelli@chromium.org's avatar
      2010-10-21 Jay Civelli <jcivelli@chromium.org> · ee1ce9b4
      jcivelli@chromium.org authored
              Reviewed by Darin Fisher.
      
              [Chromium] Adding an API that allows external
              popup menus, without the use of WebCore::PopupMenuChromium.
              Once this is hooked up in Chromium, the plan is to remove
              entirely the external case from PopupMenuChromium.
              https://bugs.webkit.org/show_bug.cgi?id=46016
      
              * WebKit.gyp:
              * public/WebExternalPopupMenu.h: Added.
              * public/WebExternalPopupMenuClient.h: Added.
              * public/WebMenuItemInfo.h:
              (WebKit::WebMenuItemInfo::WebMenuItemInfo):
              * public/WebView.h:
              * public/WebViewClient.h:
              (WebKit::WebViewClient::createExternalPopupMenu):
              * src/ChromeClientImpl.cpp:
              (WebKit::ChromeClientImpl::createPopupMenu):
              * src/ExternalPopupMenu.cpp: Added.
              * src/ExternalPopupMenu.h: Added.
              * src/WebViewImpl.cpp:
              (WebKit::WebView::setUseExternalPopupMenus):
              (WebKit::WebViewImpl::useExternalPopupMenus):
              * src/WebViewImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ee1ce9b4
  22. 11 Oct, 2010 1 commit
    • commit-queue@webkit.org's avatar
      2010-10-11 Daniel Cheng <dcheng@chromium.org> · 2c060379
      commit-queue@webkit.org authored
              Reviewed by Tony Chang.
      
              [chromium] Prepare Clipboard/DragData for transition to new drag-and-drop interface.
              https://bugs.webkit.org/show_bug.cgi?id=44992
      
              In order to allow a graceful transition, ChromiumDataObject has been
              reimplemented as a wrapper around the three different types of data
              objects that the Chrome port uses:
              1. ChromiumDataObjectLegacy -- this is the original ChromiumDataObject.
                 All the data that ClipboardChromium/DragDataChromium can potentially
                 use is copied over, regardless of whether or not it is needed.
              2. ReadableDataObject -- used for dragging in and pasting into WebKit.
                 For efficiency, it caches an optimistic list of types it believes it
                 can handle. When getData() is called, a browser IPC is called to
                 retrieve the appropriate data.
              3. WritableDataObject -- similar to ChromiumDataObjectLegacy in that it
                 buffers all data when dragging out of WebKit or copying/cutting.
                 Unfortunately, there is a difference between dragging out and
                 copying/cutting--on drag outs, the data is buffered and flushed out
                 when startDrag() is called. For copy/cut, any calls to setData()
                 result in a browser IPC right away, so calls to setData() in one
                 copy/cut event are not atomic.
      
              Copy and paste has been changed to use the new data objects. Dragging
              out uses the legacy data object, and dragging in now has two potential
              entry points--one using the legacy data object, and one using
              ReadableDataObject. Once Chromium transitions to using the new drag-in
              interface, the old interface will be removed.
      
              This change is covered by existing tests.
      
              * WebCore.gypi:
              * editing/chromium/EditorChromium.cpp:
              (WebCore::Editor::newGeneralClipboard):
              * page/chromium/EventHandlerChromium.cpp:
              (WebCore::EventHandler::createDraggingClipboard):
              * platform/chromium/ChromiumDataObject.cpp:
              (WebCore::ChromiumDataObject::ChromiumDataObject):
              (WebCore::ChromiumDataObject::create):
              (WebCore::ChromiumDataObject::createReadable):
              (WebCore::ChromiumDataObject::createWritable):
              (WebCore::ChromiumDataObject::clearData):
              (WebCore::ChromiumDataObject::clearAll):
              (WebCore::ChromiumDataObject::clearAllExceptFiles):
              (WebCore::ChromiumDataObject::hasData):
              (WebCore::ChromiumDataObject::types):
              (WebCore::ChromiumDataObject::getData):
              (WebCore::ChromiumDataObject::setData):
              (WebCore::ChromiumDataObject::urlTitle):
              (WebCore::ChromiumDataObject::setUrlTitle):
              (WebCore::ChromiumDataObject::htmlBaseUrl):
              (WebCore::ChromiumDataObject::setHtmlBaseUrl):
              (WebCore::ChromiumDataObject::containsFilenames):
              (WebCore::ChromiumDataObject::filenames):
              (WebCore::ChromiumDataObject::setFilenames):
              (WebCore::ChromiumDataObject::fileExtension):
              (WebCore::ChromiumDataObject::setFileExtension):
              (WebCore::ChromiumDataObject::fileContentFilename):
              (WebCore::ChromiumDataObject::setFileContentFilename):
              (WebCore::ChromiumDataObject::fileContent):
              (WebCore::ChromiumDataObject::setFileContent):
              * platform/chromium/ChromiumDataObject.h:
              * platform/chromium/ChromiumDataObjectLegacy.cpp: Copied from ChromiumDataObject.cpp
              (WebCore::ChromiumDataObjectLegacy::clearData):
              (WebCore::ChromiumDataObjectLegacy::clearAll):
              (WebCore::ChromiumDataObjectLegacy::clearAllExceptFiles):
              (WebCore::ChromiumDataObjectLegacy::hasData):
              (WebCore::ChromiumDataObjectLegacy::types):
              (WebCore::ChromiumDataObjectLegacy::getData):
              (WebCore::ChromiumDataObjectLegacy::setData):
              (WebCore::ChromiumDataObjectLegacy::ChromiumDataObjectLegacy):
              * platform/chromium/ChromiumDataObjectLegacy.h: Copied from ChromiumDataObject.h
              (WebCore::ChromiumDataObjectLegacy::create):
              (WebCore::ChromiumDataObjectLegacy::copy):
              (WebCore::ChromiumDataObjectLegacy::urlTitle):
              (WebCore::ChromiumDataObjectLegacy::setUrlTitle):
              (WebCore::ChromiumDataObjectLegacy::htmlBaseUrl):
              (WebCore::ChromiumDataObjectLegacy::setHtmlBaseUrl):
              (WebCore::ChromiumDataObjectLegacy::containsFilenames):
              (WebCore::ChromiumDataObjectLegacy::filenames):
              (WebCore::ChromiumDataObjectLegacy::setFilenames):
              (WebCore::ChromiumDataObjectLegacy::fileExtension):
              (WebCore::ChromiumDataObjectLegacy::setFileExtension):
              (WebCore::ChromiumDataObjectLegacy::fileContentFilename):
              (WebCore::ChromiumDataObjectLegacy::setFileContentFilename):
              (WebCore::ChromiumDataObjectLegacy::fileContent):
              (WebCore::ChromiumDataObjectLegacy::setFileContent):
              * platform/chromium/ClipboardChromium.cpp:
              (WebCore::ClipboardChromium::create):
              * platform/chromium/ClipboardChromium.h:
              * platform/chromium/ReadableDataObject.cpp:
              (WebCore::ReadableDataObject::getData):
              * platform/chromium/WritableDataObject.cpp:
              (WebCore::WritableDataObject::setData):
      2010-10-11  Daniel Cheng  <dcheng@chromium.org>
      
              Reviewed by Tony Chang.
      
              [chromium] Prepare Clipboard/DragData for transition to new drag-and-drop interface.
              https://bugs.webkit.org/show_bug.cgi?id=44992
      
              Add a new entry point for drag in to allow a graceful transition
              from the legacy drag and drop model, where all data is copied in at the
              beginning of a drag, to a model where data is retrieved on demand via
              IPCs. The rationale for this is when we begin supporting arbitrary MIME
              types in dataTransfer, we don't want to be copying aribtrary amounts of
              data over for each start drag IPC.
      
              * public/WebView.h:
              * src/WebDragData.cpp:
              (WebKit::WebDragData::initialize): Use the legacy data object.
              (WebKit::WebDragData::ensureMutable): Change the if to an ASSERT.
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::dragTargetDragEnterNew): New entry point.
              * src/WebViewImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69551 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2c060379
  23. 09 Oct, 2010 1 commit
    • commit-queue@webkit.org's avatar
      2010-10-09 Varun Jain <varunjain@chromium.org> · fc3f9206
      commit-queue@webkit.org authored
              Reviewed by Darin Fisher.
      
              Adding one method to the WebView interface: method to inform the
              renderer to scroll the currently focused element into view, for
              instance, when it is hidden due to window resizing.
              Also adding methods to WebNode and WebElement to expose more
              features of the underlying WebCore::Node.
              https://bugs.webkit.org/show_bug.cgi?id=46296
      
              * public/WebElement.h:
              * public/WebNode.h:
              * public/WebView.h:
              * src/WebElement.h:
              (WebKit::WebElement::isTextFormControlElement):
              * src/WebNode.cpp:
              (WebKit::WebNode::isContentEditable):
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::scrollFocusedNodeIntoView):
              * src/WebViewImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69459 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fc3f9206
  24. 05 Oct, 2010 1 commit
  25. 01 Oct, 2010 1 commit
    • jam@chromium.org's avatar
      2010-09-29 John Abd-El-Malek <jam@chromium.org> · 64478e71
      jam@chromium.org authored
              Reviewed by NOBODY (OOPS!).
      
              [chromium] Changes to consolidate plugin zoom
              https://bugs.webkit.org/show_bug.cgi?id=46550
      
              * public/WebPlugin.h:
              (WebKit::WebPlugin::setZoomLevel):
              * public/WebPluginContainer.h:
              * public/WebView.h:
              * public/WebViewClient.h:
              (WebKit::WebViewClient::zoomLimitsChanged):
              (WebKit::WebViewClient::zoomLevelChanged):
              * src/FrameLoaderClientImpl.cpp:
              (WebKit::FrameLoaderClientImpl::createPlugin):
              * src/WebPluginContainerImpl.cpp:
              (WebKit::WebPluginContainerImpl::loadFrameRequest):
              (WebKit::WebPluginContainerImpl::zoomChanged):
              (WebKit::WebPluginContainerImpl::zoomLimitsChanged):
              * src/WebPluginContainerImpl.h:
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::WebViewImpl):
              (WebKit::WebViewImpl::zoomLevel):
              (WebKit::WebViewImpl::setZoomLevel):
              (WebKit::WebViewImpl::zoomLimitsChanged):
              (WebKit::WebViewImpl::fullFramePluginZoomLevelChanged):
              (WebKit::WebView::zoomLevelToZoomFactor):
              (WebKit::WebView::zoomFactorToZoomLevel):
              * src/WebViewImpl.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68869 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64478e71
  26. 26 Sep, 2010 1 commit
  27. 22 Sep, 2010 1 commit
    • mihaip@chromium.org's avatar
      2010-09-22 Mihai Parparita <mihaip@chromium.org> · c419780b
      mihaip@chromium.org authored
              Reviewed by Darin Fisher.
      
              [Chromium] User style layout tests don't pass on Chromium
              https://bugs.webkit.org/show_bug.cgi?id=46069
      
              User style tests should now pass with the Chromium DRT since we now
              apply the styles immediately, just like the other ports (once we also
              remove some bad baselines for user-style-top-frame-only added by
              r62958).
      
              Tests still don't pass with test_shell until it starts to use
              InjectInExistingDocuments too.
      
              * platform/chromium-mac/userscripts/user-style-top-frame-only-expected.txt: Removed.
              * platform/chromium-win/userscripts/user-style-top-frame-only-expected.txt: Removed.
              * platform/chromium/drt_expectations.txt:
      2010-09-22  Mihai Parparita  <mihaip@chromium.org>
      
              Reviewed by Darin Fisher.
      
              [Chromium] User style layout tests don't pass on Chromium
              https://bugs.webkit.org/show_bug.cgi?id=46069
      
              Instead of making resetUserStyleCacheInAllFrames be a no-op for
              Chromium, have it be controlled by a UserStyleInjectionTime enum.
      
              Also move the UserStyleSheet::Level enum to be inside
              UserStyleSheetTypes for consistency.
      
              * WebCore.exp.in:
              * dom/Document.cpp:
              (WebCore::Document::pageGroupUserSheets):
              * page/PageGroup.cpp:
              (WebCore::PageGroup::addUserStyleSheetToWorld):
              * page/PageGroup.h:
              * page/UserStyleSheet.h:
              (WebCore::UserStyleSheet::UserStyleSheet):
              (WebCore::UserStyleSheet::level):
              * page/UserStyleSheetTypes.h:
      2010-09-22  Mihai Parparita  <mihaip@chromium.org>
      
              Reviewed by Darin Fisher.
      
              [Chromium] User style layout tests don't pass on Chromium
              https://bugs.webkit.org/show_bug.cgi?id=46069
      
              Expose UserStyleInjectionTime in WebView.
      
              * public/WebView.h:
              * src/WebViewImpl.cpp:
              (WebKit::WebView::addUserStyleSheet):
      2010-09-22  Mihai Parparita  <mihaip@chromium.org>
      
              Reviewed by Darin Fisher.
      
              [Chromium] User style layout tests don't pass on Chromium
              https://bugs.webkit.org/show_bug.cgi?id=46069
      
              Fix a typo in LayoutTestController::addUserStyleSheet that was causing a
              crash the Chromium DRT. Pass InjectInExistingDocuments to mimic DRT
              behavior from other ports.
      
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::addUserStyleSheet):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68114 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c419780b
  28. 21 Sep, 2010 1 commit
    • kbr@google.com's avatar
      2010-09-21 Kenneth Russell <kbr@google.com> · 80b4cf9b
      kbr@google.com authored
              Reviewed by James Robinson.
      
              [chromium] Remove GLES2Context and WebGLES2Context
              https://bugs.webkit.org/show_bug.cgi?id=46131
      
              Removed now-obsolete GLES2Context and WebGLES2Context classes, and
              dependency on command buffer client code from WebCore. Built and
              tested 3D CSS and WebGL content on Mac OS X to test.
      
              * WebKit.gyp:
              * public/WebGLES2Context.h: Removed.
              * public/WebGraphicsContext3D.h:
              * public/WebKitClient.h:
              * public/WebView.h:
              * src/ChromeClientImpl.cpp:
              * src/GLES2Context.cpp: Removed.
              * src/GLES2ContextInternal.cpp: Removed.
              * src/GLES2ContextInternal.h: Removed.
              * src/WebGraphicsContext3DDefaultImpl.cpp:
              * src/WebGraphicsContext3DDefaultImpl.h:
              * src/WebViewImpl.cpp:
              * src/WebViewImpl.h:
      2010-09-21  Kenneth Russell  <kbr@google.com>
      
              Reviewed by James Robinson.
      
              [chromium] Remove GLES2Context and WebGLES2Context
              https://bugs.webkit.org/show_bug.cgi?id=46131
      
              Removed now-obsolete GLES2Context and WebGLES2Context classes, and
              dependency on command buffer client code from WebCore. Built and
              tested 3D CSS and WebGL content on Mac OS X to test.
      
              * WebCore.gypi:
              * platform/chromium/GLES2Context.h: Removed.
              * platform/graphics/skia/ImageSkia.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68000 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      80b4cf9b
  29. 16 Sep, 2010 1 commit
  30. 14 Sep, 2010 2 commits
  31. 27 Jul, 2010 1 commit
    • jhawkins@chromium.org's avatar
      2010-07-27 James Hawkins <jhawkins@chromium.org> · 03b5093f
      jhawkins@chromium.org authored
              Reviewed by Darin Fisher.
      
              [Chromium] Add the ability to show right-aligned icons in the AutoFill popup.
              https://bugs.webkit.org/show_bug.cgi?id=43076
      
              * public/WebView.h:
              * src/AutoFillPopupMenuClient.cpp:
              (WebKit::AutoFillPopupMenuClient::getIcon):
              (WebKit::AutoFillPopupMenuClient::removeSuggestionAtIndex):
              (WebKit::AutoFillPopupMenuClient::itemIcon):
              (WebKit::AutoFillPopupMenuClient::initialize):
              (WebKit::AutoFillPopupMenuClient::setSuggestions):
              * src/AutoFillPopupMenuClient.h:
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::applyAutoFillSuggestions):
              (WebKit::WebViewImpl::applyAutocompleteSuggestions):
              * src/WebViewImpl.h:
      2010-07-27  James Hawkins  <jhawkins@chromium.org>
      
              Reviewed by Darin Fisher.
      
              Add itemIcon() method to the PopupMenuClient, used by Chrome AutoFill
              to display right-aligned credit card icons in the suggestions popup.
              https://bugs.webkit.org/show_bug.cgi?id=43076
      
              No new tests as this is only used by the Chromium WebKit API.
      
              * platform/PopupMenuClient.h:
              * platform/chromium/PopupMenuChromium.cpp:
              (WebCore::PopupListBox::paintRow):
              * rendering/RenderMenuList.cpp:
              (WebCore::RenderMenuList::itemIcon):
              * rendering/RenderMenuList.h:
              * rendering/RenderTextControlSingleLine.cpp:
              (WebCore::RenderTextControlSingleLine::itemIcon):
              * rendering/RenderTextControlSingleLine.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64173 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      03b5093f
  32. 14 Jul, 2010 1 commit
    • jhawkins@chromium.org's avatar
      2010-07-14 James Hawkins <jhawkins@chromium.org> · 87bdd534
      jhawkins@chromium.org authored
              Reviewed by Darin Fisher.
      
              [Chromium] Use the unique ID instead of the profile label to identify
              the accepted AutoFill suggestion.
              https://bugs.webkit.org/show_bug.cgi?id=42301
      
              * public/WebView.h:
              * public/WebViewClient.h:
              (WebKit::WebViewClient::didAcceptAutoFillSuggestion):
              (WebKit::WebViewClient::didSelectAutoFillSuggestion):
              * src/AutoFillPopupMenuClient.cpp:
              (WebKit::AutoFillPopupMenuClient::valueChanged):
              (WebKit::AutoFillPopupMenuClient::selectionChanged):
              (WebKit::AutoFillPopupMenuClient::initialize):
              (WebKit::AutoFillPopupMenuClient::setSuggestions):
              (WebKit::AutoFillPopupMenuClient::textFieldStyle):
              * src/AutoFillPopupMenuClient.h:
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::applyAutoFillSuggestions):
              (WebKit::WebViewImpl::applyAutocompleteSuggestions):
              * src/WebViewImpl.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63379 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      87bdd534
  33. 08 Jul, 2010 1 commit
    • aa@chromium.org's avatar
      2010-07-08 Aaron Boodman <aa@chromium.org> · 509c1c3d
      aa@chromium.org authored
              Reviewed by Timothy Hatcher.
      
              Add the ability for user scripts and user styles to affect just the top frame.
      
              https://bugs.webkit.org/show_bug.cgi?id=41529
      
              * platform/win/Skipped: Skipped test because WebKit API needs updating.
              * userscripts/mixed-case-stylesheet.html: Added new allFrames param.
              * userscripts/resources/frame1.html: Added.
              * userscripts/resources/frame2.html: Added.
              * userscripts/script-not-run-for-fragments.html: Added new allFrames param.
              * userscripts/script-run-at-end.html: Ditto.
              * userscripts/script-run-at-start.html: Ditto.
              * userscripts/simple-stylesheet.html: Ditto.
              * userscripts/user-script-all-frames-expected.txt: Added.
              * userscripts/user-script-all-frames.html: Added.
              * userscripts/user-script-top-frame-only-expected.txt: Added.
              * userscripts/user-script-top-frame-only.html: Added.
              * userscripts/user-style-all-frames-expected.txt: Added.
              * userscripts/user-style-all-frames.html: Added.
              * userscripts/user-style-top-frame-only-expected.txt: Added.
              * userscripts/user-style-top-frame-only.html: Added.
      2010-07-08  Aaron Boodman  <aa@chromium.org>
      
              Reviewed by Timothy Hatcher.
      
              Add the ability for user scripts and user styles to affect just the top frame.
      
              https://bugs.webkit.org/show_bug.cgi?id=41529
      
              Tests: userscripts/user-script-all-frames.html
                     userscripts/user-script-top-frame-only.html
                     userscripts/user-style-all-frames.html
                     userscripts/user-style-top-frame-only.html
      
              * WebCore.base.exp: Update PageGroup method signatures.
              * dom/Document.cpp:
              (WebCore::Document::pageGroupUserSheets): Check allFrames before injecting.
              * page/Frame.cpp:
              (WebCore::Frame::injectUserScriptsForWorld): Ditto.
              * page/PageGroup.cpp:
              (WebCore::PageGroup::addUserScriptToWorld):
              (WebCore::PageGroup::addUserStyleSheetToWorld):
              * page/PageGroup.h:
              * page/UserScript.h:
              (WebCore::UserScript::UserScript):
              (WebCore::UserScript::injectedFrames):
              * page/UserScriptTypes.h:
              (WebCore::):
              * page/UserStyleSheet.h:
              (WebCore::UserStyleSheet::UserStyleSheet):
              (WebCore::UserStyleSheet::injectedFrames):
      2010-07-08  Aaron Boodman  <aa@chromium.org>
      
              Reviewed by Timothy Hatcher.
      
              Add the ability for user scripts and user styles to affect just the top frame.
      
              https://bugs.webkit.org/show_bug.cgi?id=41529
      
              * public/WebView.h:
              (WebKit::WebView::):
              (WebKit::WebView::addUserScript):
              (WebKit::WebView::addUserStyleSheet):
              * src/AssertMatchingEnums.cpp:
              * src/WebViewImpl.cpp:
              (WebKit::WebView::addUserScript):
              (WebKit::WebView::addUserStyleSheet):
      2010-07-08  Aaron Boodman  <aa@chromium.org>
      
              Reviewed by Timothy Hatcher.
      
              Add the ability for user scripts and user styles to affect just the top frame.
      
              https://bugs.webkit.org/show_bug.cgi?id=41529
      
              * WebView/WebView.mm:
              (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:]):
              (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
              (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:]):
              (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
              * WebView/WebViewPrivate.h:
      2010-07-08  Aaron Boodman  <aa@chromium.org>
      
              Reviewed by Timothy Hatcher.
      
              Add the ability for user scripts and user styles to affect just the top frame.
      
              https://bugs.webkit.org/show_bug.cgi?id=41529
      
              * WebView.cpp:
              (WebView::addUserScriptToGroup):
              (WebView::addUserStyleSheetToGroup):
      2010-07-08  Aaron Boodman  <aa@chromium.org>
      
              Reviewed by Timothy Hatcher.
      
              Add the ability for user scripts and user styles to affect just the top frame.
      
              https://bugs.webkit.org/show_bug.cgi?id=41529
      
              * DumpRenderTree/LayoutTestController.h: Added new allFrames param.
              * DumpRenderTree/LayoutTestController.cpp: Ditto.
              (addUserScriptCallback):
              (addUserStyleSheetCallback):
              * DumpRenderTree/chromium/LayoutTestController.cpp: Ditto.
              (LayoutTestController::addUserScript):
              (LayoutTestController::addUserStyleSheet):
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: Ditto.
              (LayoutTestController::addUserScript):
              (LayoutTestController::addUserStyleSheet):
              * DumpRenderTree/mac/LayoutTestControllerMac.mm: Ditto.
              (LayoutTestController::addUserScript):
              (LayoutTestController::addUserStyleSheet):
              * DumpRenderTree/win/LayoutTestControllerWin.cpp: Ditto.
              (LayoutTestController::addUserScript):
              (LayoutTestController::addUserStyleSheet):
              * DumpRenderTree/wx/LayoutTestControllerWx.cpp: Ditto.
              (LayoutTestController::addUserScript):
              (LayoutTestController::addUserStyleSheet):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@62876 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      509c1c3d
  34. 01 Jul, 2010 2 commits
    • commit-queue@webkit.org's avatar
      2010-07-01 David Holloway <dhollowa@chromium.org> · 1e0c3c4f
      commit-queue@webkit.org authored
              Reviewed by Darin Fisher.
      
              [chromium] Consolidates AutoFill and Autocomplete popup menus into a single popup menu.
      
              This change combines SuggestionsPopupMenuClient, AutoFillPopupMenuClient, and
              AutocompletePopupMenuClient classes into a single consolidated AutoFillPopupMenuClient class.
              Prior to this change the contents of the AutoFill popup menu only included AutoFill
              suggestions and similarly the Autocomplete popup menu only included Autocomplete
              suggestions.  With this consolidation, both AutoFill and Autocomplete suggestions can
              now be displayed in a single menu.
      
              https://bugs.webkit.org/show_bug.cgi?id=41236
      
              * WebKit.gyp:
              * public/WebFrame.h:
              * public/WebView.h:
              * src/AutoFillPopupMenuClient.cpp:
              (WebKit::AutoFillPopupMenuClient::AutoFillPopupMenuClient):
              (WebKit::AutoFillPopupMenuClient::~AutoFillPopupMenuClient):
              (WebKit::AutoFillPopupMenuClient::valueChanged):
              (WebKit::AutoFillPopupMenuClient::selectionCleared):
              (WebKit::AutoFillPopupMenuClient::itemText):
              (WebKit::AutoFillPopupMenuClient::itemStyle):
              (WebKit::AutoFillPopupMenuClient::menuStyle):
              (WebKit::AutoFillPopupMenuClient::clientPaddingLeft):
              (WebKit::AutoFillPopupMenuClient::clientPaddingRight):
              (WebKit::AutoFillPopupMenuClient::popupDidHide):
              (WebKit::AutoFillPopupMenuClient::setTextFromItem):
              (WebKit::AutoFillPopupMenuClient::fontSelector):
              (WebKit::AutoFillPopupMenuClient::hostWindow):
              (WebKit::AutoFillPopupMenuClient::createScrollbar):
              (WebKit::AutoFillPopupMenuClient::initialize):
              (WebKit::AutoFillPopupMenuClient::getWebView):
              (WebKit::AutoFillPopupMenuClient::textFieldStyle):
              * src/AutoFillPopupMenuClient.h:
              (WebKit::AutoFillPopupMenuClient::itemToolTip):
              (WebKit::AutoFillPopupMenuClient::itemAccessibilityText):
              (WebKit::AutoFillPopupMenuClient::itemIsEnabled):
              (WebKit::AutoFillPopupMenuClient::clientInsetLeft):
              (WebKit::AutoFillPopupMenuClient::clientInsetRight):
              (WebKit::AutoFillPopupMenuClient::listSize):
              (WebKit::AutoFillPopupMenuClient::selectedIndex):
              (WebKit::AutoFillPopupMenuClient::itemIsLabel):
              (WebKit::AutoFillPopupMenuClient::itemIsSelected):
              (WebKit::AutoFillPopupMenuClient::shouldPopOver):
              (WebKit::AutoFillPopupMenuClient::valueShouldChangeOnHotTrack):
              (WebKit::AutoFillPopupMenuClient::setAutocompleteMode):
              (WebKit::AutoFillPopupMenuClient::getTextField):
              (WebKit::AutoFillPopupMenuClient::getSelectedIndex):
              (WebKit::AutoFillPopupMenuClient::setSelectedIndex):
              * src/AutocompletePopupMenuClient.cpp: Removed.
              * src/AutocompletePopupMenuClient.h: Removed.
              * src/EditorClientImpl.cpp:
              (WebKit::EditorClientImpl::textFieldDidEndEditing):
              (WebKit::EditorClientImpl::doAutofill):
              (WebKit::EditorClientImpl::onAutocompleteSuggestionAccepted):
              * src/SuggestionsPopupMenuClient.cpp: Removed.
              * src/SuggestionsPopupMenuClient.h: Removed.
              * src/WebFrameImpl.cpp:
              (WebKit::WebFrameImpl::currentHistoryItem):
              (WebKit::WebFrameImpl::notifiyPasswordListenerOfAutocomplete):
              * src/WebFrameImpl.h:
              * src/WebViewImpl.cpp:
              (WebKit::):
              (WebKit::WebViewImpl::WebViewImpl):
              (WebKit::WebViewImpl::mouseDown):
              (WebKit::WebViewImpl::mouseUp):
              (WebKit::WebViewImpl::selectPopupHandleKeyEvent):
              (WebKit::WebViewImpl::autocompleteHandleKeyEvent):
              (WebKit::WebViewImpl::hideAutoFillPopup):
              (WebKit::WebViewImpl::setFocus):
              (WebKit::WebViewImpl::applyAutoFillSuggestions):
              (WebKit::WebViewImpl::applyAutocompleteSuggestions):
              (WebKit::WebViewImpl::hidePopups):
              (WebKit::WebViewImpl::refreshAutoFillPopup):
              * src/WebViewImpl.h:
              (WebKit::WebViewImpl::autoFillPopupDidHide):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@62272 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1e0c3c4f
    • aa@chromium.org's avatar
      2010-07-01 Aaron Boodman <aa@chromium.org> · 08ca4ced
      aa@chromium.org authored
              Reviewed by Darin Fisher.
      
              Make the user script API static. This makes it more convenient to use
              if you don't have a WebView instance yet.
      
              Added static versions of the three methods and re-route current ones
              temporarily through the static versions. Will remove the non-static
              versions once Chromium has been updated.
      
              Also, expose the URLPattern configuration for user stylesheets, since
              they were not before.
      
              https://bugs.webkit.org/show_bug.cgi?id=41385
      
              * public/WebView.h:
              (WebKit::WebView::addUserScript):
              (WebKit::WebView::addUserStyleSheet):
              * src/WebViewImpl.cpp:
              (WebKit::WebView::addUserScript):
              (WebKit::WebView::addUserStyleSheet):
              (WebKit::WebView::removeAllUserContent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@62234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      08ca4ced