summaryrefslogtreecommitdiffstats
path: root/WebKit
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Fix WebView form submission CTS failure.Ben Murdoch2010-12-152-14/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we try to resolve the MIME type from the URL path, we need to be sure to pass just the path so strip off any fragment or query strings. Otherwise this wreaks havoc when we try and extract the file extension to deduce the MIME type. Bug:3241908 Change-Id: I592ae7ba0acc7478789599aeb6973675ed415a37
* | | | | | Re-enable iframe scrolling.Patrick Scott2010-12-151-33/+16
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c7911ffd666a7e73131dfd68919b769086a093e0.
* | | | | | Merge "improve text selection"Cary Clark2010-12-153-133/+317
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | improve text selectionCary Clark2010-12-143-133/+317
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LayerAndroid.* Adjust the hit-test (x,y) by the layer position. Keep track of the adjusted (x,y) and store the best to be returned when the best layer is found. CachedRoot.cpp Remove code that adjusted (x,y) by layer bounds. SelectText.* Detect columns of text and prefer new characters in the same column as the existing selection. Don't extend the selection until the tap point moves past the word anchors. There's more work to do on selecting text in layers. bug:3275625 bug:3271730 bug:3191699 Change-Id: Ib3c2b35e5eebe30c6032f484cf76d388e94293e0
* | | | | Revert "Enable iframe scrolling."Guang Zhu2010-12-141-16/+33
|/ / / / | | | | | | | | | | | | This reverts commit 27dd9e051d0960e985cb677bfc1ce20531ac0456.
* | | | Merge "Set 660 permissions on Geolocation permissions DB"Steve Block2010-12-142-3/+21
|\ \ \ \
| * | | | Set 660 permissions on Geolocation permissions DBSteve Block2010-12-142-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 3256540 Change-Id: Ica5bcf66b7c95fde68836a3607ad30affbb3b1ce
* | | | | Merge "Enable iframe scrolling."Patrick Scott2010-12-131-33/+16
|\ \ \ \ \
| * | | | | Enable iframe scrolling.Patrick Scott2010-12-131-33/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turn off iframe expansion and record iframes in a composited layer. Fix navigation by tracking iframe layers if needed. Remove the logic to add focused nodes to the last tracked layer as it is not needed and might add nodes to the wrong layer. Bug: 3219076, 3211666, 3201077, 3194321 Change-Id: Ifc0b83102438255db7e4b62ad260f50ebbdb0e50
* | | | | | Only the WebRequestContext handle deletion of private cookiesKristian Monsen2010-12-134-63/+29
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is now only done on the webcore thread, and not on external request. Bug 3243891 Change-Id: Ia46422f2f92c2d7c4907862a8059af64f6e50f06
* | | | | Merge "Fixes cookiejar and webicon permissions"John Reck2010-12-132-4/+32
|\ \ \ \ \
| * | | | | Fixes cookiejar and webicon permissionsJohn Reck2010-12-102-4/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 3244281 Change-Id: Ib7359e5524aeaf4f82f52603e83dde3e99c507c2
* | | | | | Clean the private cookies when we create the first or remove the last contextKristian Monsen2010-12-131-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 3243891 Change-Id: Ia67ae91bd5ca13c896e45bf4dcc79debd77051db
* | | | | | Make private browsing cache in-memoryKristian Monsen2010-12-133-23/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is better as private browsing data should not be written to disk if it can be avoided. Bug 3274225 Change-Id: I5c1832bbe26e58bc7e430ecdaa7cbd0a6ba1c384
* | | | | | Merge "Add JNI hooks for JniUtil class."Iain Merrick2010-12-134-11/+61
|\ \ \ \ \ \
| * | | | | | Add JNI hooks for JniUtil class.Iain Merrick2010-12-104-11/+61
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed because I moved the useChromiumHttpStack() function into JniUtil (it was previously in CookieManager). Corresponding Java change in I56b0ddca BUG=3270236 Change-Id: I78a92cb2a6cee4a93957f2638d96ea5b82a8620c
* | | | | | Fix hit testing inside layers.Patrick Scott2010-12-131-7/+8
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prevent asking for a sync in GraphicsLayerAndroid if some property has not changed. * Remove scrolling logic from LayerAndroid and create a subclass for scrollable layers. * Report the scrolling limits to the layer in order to scroll iframes (not turned on) and to avoid computing them each time the layer is scrolled. * Change the foreground rect calculations to better match the non-overflow case. * During hit testing, intersect the hitTestClip with the foreground and background to prevent false positives in the layer. * Prepare for iframe scrolling by adding code to trigger compositing for iframes. This currently works great except for navigation so it disabled for now. Bug: 3258631 Change-Id: I0da2d8dbe25376c6aa4f485c9350048c82c6f563
* | | | | Merge "Update Audio MediaPlayer to cope with a live stream"Ben Murdoch2010-12-091-1/+10
|\ \ \ \ \
| * | | | | Update Audio MediaPlayer to cope with a live streamBen Murdoch2010-12-091-1/+10
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Android framework gives us a duration of 0s for a live stream so in that case tell WebCore we have an infinite duration. Change-Id: I5caea8401406785eba61424cdb02abf9bfab0912
* | | | | Merge "look for the parent anchor"Cary Clark2010-12-091-2/+8
|\ \ \ \ \
| * | | | | look for the parent anchorCary Clark2010-12-091-2/+8
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The node hit may be the text inside an anchor, so chase the parent containership to the first element before testing. bug:3263340 Change-Id: I2e2e4b1342024deef5539d7eb4dbd376a8b329f4
* | | | | Merge "WebResponse headers should be case-insensitive."Iain Merrick2010-12-091-1/+9
|\ \ \ \ \
| * | | | | WebResponse headers should be case-insensitive.Iain Merrick2010-12-091-1/+9
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CTS test WebViewTest.testSetDownloadListener was failing due to a disagreement over the capitalization of "Content-Disposition". Rather than making our stack exactly match the CTS server, it looks like the headers should actually be case-insensitive. (Note that we still preserve the case of the headers exactly as reported by the server, so hopefully this won't break anything else.) BUG=3242063 TEST=WebViewTest.testSetDownloadListener Change-Id: I0931da98aab9080127e355e51d89ac3fde12e7c2
* | | | | call hideCursor directly, avoiding a newer cacheCary Clark2010-12-091-1/+7
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The WebView interface hideCursor gets a newer cache if one is available. This interface was also called when the cursor animation completes, before the cursor is drawn. Getting a newer cache at this time can cause the data in m_ring to be invalid. Pass the root cache stored as part of the ring data instead, so that the ring is drawn consistently. bug:3262275 Change-Id: Id205a10f96329e9d5ac794a8537f25a05918cafd
* | | | Merge "Add app-switch keycode."Jeff Brown2010-12-071-0/+1
|\ \ \ \
| * | | | Add app-switch keycode.Jeff Brown2010-12-071-0/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I536fbb4545953098626a7b8d804a5a22746895b1
* | | | | GLWebViewState should get the baseLayer set during initTeng-Hui Zhu2010-12-071-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because WebView::setBaseLayer can happen all before the first call to drawGL, where the m_glWebViewState got allocated, GLWebViewState::setBaseLayer is not called properly. The fix is to call the GLWebViewState::setBaseLayer when m_glWebViewState first allocated. bug: 3171575 Change-Id: I58769aa4a883f442dc2b582ea70c5b7f6c5a04f2
* | | | | Merge "Change scrollBy to scrollTo in order to support fling."Patrick Scott2010-12-071-8/+13
|\ \ \ \ \
| * | | | | Change scrollBy to scrollTo in order to support fling.Patrick Scott2010-12-071-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requires a change in frameworks/base. Report the scrollable rectangle when asking for a scrollable layer. This rectangle contains the current offset and the max offset for scrolling. These are content coordinates relative to 0, 0. Change-Id: Ia27dd23d6232057a648892d866109770f8e5bb55
* | | | | | Fix for <select> elements.Leon Scroggins2010-12-073-29/+11
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug:3230016 Allow webkit to handle the click on a <select> element if it is a RenderMenuList. Implement PopupMenu class, using PopupMenuClient to interact with the <select> element. Change-Id: I9611c23304fc2fc3eb01ecbd7a46fa02cd52df9a
* | | | | Fix CookieManager.hasCookies().Iain Merrick2010-12-063-3/+17
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To pass the CTS test, this method needs to check the persistent database directly, ignoring any cookies that are only stored in memory. Depends on change Id498d281 in external/chromium, which adds the GetCookieCount() method. Change-Id: Ibeceaaa9942b5f4f1160fc2eeeca8b2322169a90
* | | | Merge "CookieManager::flushCookieStore() is now synchronous."Iain Merrick2010-12-063-2/+64
|\ \ \ \
| * | | | CookieManager::flushCookieStore() is now synchronous.Iain Merrick2010-12-033-2/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures that all data is correctly stored before onPause() returns. There's no API change on the Java side (although I should update the comment to explain it's now synchronous; I'll do that in another CL). Depends on a new completion callback added to CookieMonster. See change Ieb3e787b in external/chromium. Change-Id: I008f35d101a9223fe705396273bc4cd563a5f77e
* | | | | Refactor AutoFill so it runs lazily.Ben Murdoch2010-12-067-41/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL refactors the AutoFill code so that we only search for forms when we need to, i.e. the user has focused a form field. This helps page load times. We also re-search the document for forms if the dom version number has changed. These changes fix a bug where a crash occurs if the form is focused before the page has finished loading. We also move the callsite of formFieldFocused so that it only occurs when the IME is requested which is a more appropriate place called less frequently than it's current callsite in EditorClientAndroid. Bug: 3243567 Change-Id: I04fe13944d3f8248197d71a0e58c21f01c4abdd0
* | | | | Fix gmail crash with HW acceleration.Patrick Scott2010-12-031-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 3252105 Change-Id: I78801b603d46c4cbe1b8d26b47f8748bb5e3df2c
* | | | | Avoid reflow if textWrapWidth's diff is small.Shimeng (Simon) Wang2010-12-031-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also don't try re-scroll if anchor is at left top corner. issue: 3225233 Change-Id: I65fdeb09abb58c0543efe8e8505f3b58f05730a2
* | | | | Merge "Attempt to scroll layers everytime the user drags."Patrick Scott2010-12-033-35/+29
|\ \ \ \ \
| * | | | | Attempt to scroll layers everytime the user drags.Patrick Scott2010-12-033-35/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is part of a frameworks/base change. Use the composite root bounds for the inval region when updating the UI picture. This fixes several drawing issues with outdated pictures. Bug: 3022562 Change-Id: Ic28cfbbe381fdd59368a6d83bb73b01df912b530
* | | | | | Merge changes If294e929,I1baea2ee,Ie2bf417bBen Murdoch2010-12-036-19/+32
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Merge Chromium at r66597: Merge in AutoFill changes in r66310 Merge Chromium at r66597: Merge in AutoFill changes from r66237 Merge Chromium at r66597: AutoFill: no more queryId
| * | | | | | Merge Chromium at r66597: Merge in AutoFill changes in r66310Ben Murdoch2010-12-032-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See http://src.chromium.org/viewvc/chrome?view=rev&revision=66310 Change-Id: If294e929ee4d27fd6804939986be7650ff7224ad
| * | | | | | Merge Chromium at r66597: Merge in AutoFill changes from r66237Ben Murdoch2010-12-031-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See http://src.chromium.org/viewvc/chrome?view=rev&revision=66237 Change-Id: I1baea2eea0e6cf0def36ce3f69e8fb53a17eb2ba
| * | | | | | Merge Chromium at r66597: AutoFill: no more queryIdBen Murdoch2010-12-034-8/+8
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See http://src.chromium.org/viewvc/chrome?view=rev&revision=66237 Change-Id: Ie2bf417bf20686ca782f6c0e4d2527e666c88ad4
* | | | | | Merge "keep rects separate across canvas push"Cary Clark2010-12-031-1/+6
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | keep rects separate across canvas pushCary Clark2010-12-031-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The nav cache identifies visible elements by accumulating the drawing commands used in an interesting part of the picture, then eliminating the portions that are too large or overdrawn. Consecutive draws of the same type are combined, so that, for instance, glyphs assimilate to form a string, or bitmaps form a nine-patch. Draws of the same type shouldn't be combined when they represent different objects. Break apart draws of the same object if there is a push/pop pair surrounding the previous draw of that object type. bug:3241830 bug:3241992 Change-Id: I4eb65a0ae0d923d4950cda88e16cb4bbacfde663
* | | | | | Rewrite scrollable layers using multiple layers.Patrick Scott2010-12-039-169/+152
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove PlatformBridge::updateLayers and instead call layersDraw from ChromeClientAndroid during a requested sync. Instead of LayerAndroid having knowledge of scrolling pictures, use multiple layers (background, mask, foreground). Update navigation to use the new structure. Always record nodes in absolute, unscrolled coordinates. Do not track layers unless the node has a composited layer and a last child. Check for composited parents when adding to tracked layers as well. TODO: * developer.android.com doesn't completely work with navigation due to some nodes being clipped out. * BaseLayerAndroid needs to be able to operate with a matrix other than identity. * nested fixed position elements do not draw correctly. * nested overflow layers haven't been tested. Change-Id: I0e2bd37612341e8884d68153ab36194cb2dc1eeb
* | | | | Merge WebKit at r72274: Implement PlatformBridge memory management methods ↵Ben Murdoch2010-12-025-0/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for WebKit change 71639 Get device class specific memory constraints for V8. V8 can be more efficient in terms of memory management but to do so needs to know about what resources are available to it. This varies device to device on Android so add implement the functions that the the PlatformBridge needs to query the relevant values from Java. MemoryUsage.cpp will compile for JSC, but needs tuning to report correct JSC stats. It's currently a non-issue, as this routine is only used with V8, at present. Requires a frameworks/base change: https://android-git.corp.google.com/g/#change,78690 Bug: 3075565 Requires a previously upstreamed webkit change: http://trac.webkit.org/changeset/71639 Change-Id: I25ff54b5c8e25f5de5380e0d43e56551587adc5d
* | | | | Merge WebKit at r72274: Moved definition of EXPORTRussell Brenner2010-12-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The definition of EXPORT was removed from WebCorePrefix.h, citing that it's only needed by WebKit/android. Added definition to WebKit/android. http://trac.webkit.org/changeset/71578 Change-Id: I3fe6909d5e5c668299ca25dc39ef0e444620fd33
* | | | | Merge WebKit at r72274: Initial merge by git.Russell Brenner2010-12-02110-770/+3556
| | | | | | | | | | | | | | | | | | | | Change-Id: Ie51f0b4a16da82942bd516dce59cfb79ebbe25fb
* | | | | Merge "Fix crash when syncing autofill settings."Ben Murdoch2010-12-021-9/+11
|\ \ \ \ \
| * | | | | Fix crash when syncing autofill settings.Ben Murdoch2010-12-021-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we moved the autofill initiation code out of the constructor and into it's own method, we may crash if there is an autofill profile set but the feature is turned off (i.e. the user had it on at one point and had a profile set up but turned it off without deleting the profile). That's because in this case we execute setAutoFillProfile() in WebSettings without having first called the new init method. It makes sense to not sync any profiles though when the feature is not enabled, so add that check. Change-Id: I9d99e96347770e5b08c982513f2370cb770cbe94