summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebViewCore.cpp
Commit message (Collapse)AuthorAgeFilesLines
* DO NOT MERGE-Move check for pending style recalcRussell Brenner2011-05-241-5/+5
| | | | | | | | | | The previous implementation had no way to notify the caller as to whether or not the recording was successful. Now, recordContent detects the pending recalc and returns null to indicate that no recording was done. bug: 4474358 Change-Id: I5d54fc606a059203a96270eae5dc78dc21e39a53
* DO NOT MERGEDavid Deephanphongs2011-05-051-2/+17
| | | | | | | | | | | | | | | | | | | | Cherry-pick change I2ae80ddc from master: Fix crash in font-handling code caused by repainting while a style recalculation was pending. The Android FrameCache was being updated while a style recalculation was pending. This would cause the cached fonts in the FontFallbackList to be accessed, but that cache is not necessarily consistant while a recalculation is pending. A similar issue was occurring with recordPictureSet. In updateFrameCache() and recordPictureSet(), early-abort if the document is waiting for a style recalculation. In notifyProgressFinished(), remove the call to updateFrameCache(). Bug: 4292199 Bug: 4291311 Change-Id: Ie8bc4cb0637ccb7aee37597ac08fd8abffc149cd
* Pass the URL at the enterfullscreen timeTeng-Hui Zhu2011-03-161-3/+4
| | | | | | bug:2126902 Change-Id: I84a27fabccc32ef85c8d78d6702d22ffca497db7
* Merge "b/3392594 keep the remaining touch points when one is ended." into ↵Huahui Wu2011-03-141-14/+37
|\ | | | | | | honeycomb-mr1
| * b/3392594 keep the remaining touch points when one is ended.Huahui Wu2011-03-141-14/+37
| | | | | | | | | | | | | | This is native side code for b/3392594, which takes the action index from java side, and set the touch point state accordingly. Change-Id: I894bcfc25f761725a5f37317a8fadffbba68b6df
* | HTML5 Video improvementsNicolas Roard2011-03-111-0/+14
| | | | | | | | | | | | | | | | | | - remove the seek buttons on the control bar - make the control bar translucent - add a fullscreen button passing the layer id to the java side bug:2126902 Change-Id: Id9638f6b01f968839eaf4b0bd8cf1603957753af
* | Do not attempt to put textfield onscreen when size changes.Leon Scroggins2011-03-091-10/+1
|/ | | | | | | | | Bug:4079218 A frameworks/base change will make it so the textfield scrolls on screen when the IME is shown. Change-Id: I654079288fdad657f476948476d689359cf48804
* check for stacking context before scrolling layerCary Clark2011-03-021-1/+4
| | | | | | | | It doesn't make sense to scroll without a stacking context. bug:3494970 Change-Id: I59e951b3688aa21f5c99b16a953b6620b501442c
* Allow a site to specify to not show the IME for a textfield.Leon Scroggins2011-02-251-2/+20
| | | | | Bug:3391139 Change-Id: Ic1c99750c9e91940d9ac628444be594f5f860748
* Use an appropriate parameter for revealSelection.Leon Scroggins2011-02-251-2/+2
| | | | | | | | | | Bug:3367446 The default ScrollAlignment for revealSelection results in attempting to scroll to a negative scroll position in y. Change-Id: I482d6dbe2e91e3eba24036b8acf4a0c13a6a2c7e
* Stop the blinking caret when moving to another field.Leon Scroggins2011-02-241-4/+15
| | | | | | | | Bug:2930013 Requires a change in frameworks/base. Change-Id: I892fcdd9b9a0abdcf82e5bb26c930b68ae8b10fa
* Merge "Skia Merge (revision 808)"Derek Sollenberger2011-02-241-1/+1
|\
| * Skia Merge (revision 808)Derek Sollenberger2011-02-221-1/+1
| | | | | | | | | | | | This is a companion CL to the one found in /external/skia Change-Id: I469b8845a88f24d972fd57ee5c9cab505a5b83aa
* | Scroll the RenderLayer during touch events.Patrick Scott2011-02-221-47/+30
|/ | | | | | | | Keep track of the owning layer for each LayerAndroid. No longer need to unadjust the node bounds since the node will be scrolled into view. Bug: 3442108 Change-Id: I7c9604d347af326ccfb86e6d3f2b95b7ce1b97c1
* Fix a leaked JNI LocaRef in WebViewCore::jsPrompt()Steve Block2011-02-211-2/+3
| | | | | Bug: 3470906 Change-Id: I8fb9ddcf4ff3dee35c2225a18a86b4015002da96
* Generate well-formed makrup for accessibility events.Svetoslav Ganov2011-02-141-21/+7
| | | | | | | | | | | | bug:3444147 1. Removed the code that incorrectly strips CSS spans appended by WebKit. This CSS information is now propagated to the client applications such as TalkBack. 2. Renamed getImplicitAnchorOrOffsetNode to getImplicitBoundaryNode. Change-Id: I6618be4d208fafd223ba09fb90c393046121ca88
* Merge "Only update history position if scrolling is done by user."Shimeng (Simon) Wang2011-02-101-15/+17
|\
| * Only update history position if scrolling is done by user.Shimeng (Simon) Wang2011-02-101-15/+17
| | | | | | | | | | issue: 3433562 Change-Id: I520f50cc6657f0a244860e01d38e3f71607fe665
* | Merge changes I0c422ecd,Ia06decf9Teng-Hui Zhu2011-02-101-2/+6
|\ \ | |/ |/| | | | | | | * changes: Improve the fixed element position calculation Revert "A temp WAR for fixed element position update"
| * Improve the fixed element position calculationTeng-Hui Zhu2011-02-091-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the previous WAR, we get the screen size from UI thread at every draw call. That is awkward. Now with Java side fix, we can get the screen size from setSize call now. However, forcing a full re-layout seems like an expensive operation. What we need to make the webkit to know the update can be done by just updating the fixed position elements only. So I have done these: 1. Take away the WAR by forcing the update at the convertToLayerCoord. 2. Get rid of the UI thread stuff used to tell WebViewCore the screen size. And get rid of the redundant variables, too. 3. update the fixed element at the setSize time. BTW, I also rename the PlatformBridge functions name. bug: 3397602 Change-Id: I0c422ecdb570de89aecb6e568d5067acf18ecfc6
* | Merge "Consolidate scrolling methods."Patrick Scott2011-02-091-29/+12
|\ \
| * | Consolidate scrolling methods.Patrick Scott2011-02-091-29/+12
| |/ | | | | | | | | | | | | | | | | Call through to a single java function to scroll the page. Always use scrollTo so that there isn't a problem with using scrollBy on an old or out-of-sync scroll position. Bug: 3187015 Change-Id: I4a75256687e53ed18c1f73970e9032f476b81859
* | WevView accessibility no JavaScript - clean up, null poiner error.Svetoslav Ganov2011-02-091-322/+322
|/ | | | | | | | | | | | | | | | | | bug:3421690 1. Added explicit checks for error/null pointer at places where such check were missing. 2. Fixed skipping of som einput cotrols while traversing backwards. 3. Factored out common code. 4. Input controls were not correctly selected after scrolling the view port. 5. Imroved node visibility checking. Change-Id: Idfec7e6a17ac8531f6b073ad6d858932e0921767
* Guard autofill correctly.Ben Murdoch2011-02-081-0/+2
| | | | | | Bug: 3411200 Change-Id: I6e80795413d68ac1b7b9ada4ac44901916d6efbf
* Use ListBoxPopupMenuClient for listboxes.Leon Scroggins2011-02-031-128/+1
| | | | | | | | Bug:2754767 Enables us to remove some layering violations. Change-Id: Iea184c7946bca9d840c708918f545a9d9b436254
* am 7bb73b67: am 4da96b99: Get layers showing againBen Murdoch2011-02-011-12/+0
|\ | | | | | | | | * commit '7bb73b678e89be38d22b27e428ccd3406392c7cb': Get layers showing again
| * Get layers showing againBen Murdoch2011-02-021-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lazily get the maximum texture size from GL when we first need it. This avoids calling GL functions before GL has been set up and ensures it is done on the correct (ie. UI) thread. Also move the tiles expansion setting from WC thread to UI thread as TilesManager is not thread safe when creating the singleton instance. This makes change 4596782e unnecessary so we remove it. Bug: 3412928 Change-Id: I740974d8cc0ef4f66956cd6a07b058bfa7ca767f
| * Improving fix for bug 3317722 - DO NOT MERGEKristian Monsen2011-02-011-4/+6
| | | | | | | | | | | | A simple null check to avoid crash Change-Id: Ie3e4236687cf22205678abf286688dee45e1cdb5
* | am 19a35bdf: am f09d842c: Smoother scrolling by preparing offscreen tiles ↵Dave Burke2011-02-011-0/+12
|\ \ | |/ | | | | | | | | | | (credit: Ben Murdoch) * commit '19a35bdf5917bdaaab97a77f0dedca79db87a67b': Smoother scrolling by preparing offscreen tiles (credit: Ben Murdoch)
| * Smoother scrolling by preparing offscreen tiles (credit: Ben Murdoch)Dave Burke2011-02-011-0/+12
| | | | | | | | Change-Id: I80c7757bfb85f0b45726f2fa2f18644d2493fced
* | Pass an extra boolean with scrollTo message.Leon Scroggins2011-02-011-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | Bug:3411564 When the size changes, add a boolean to the scroll message to only honor the scroll in the case that the IME is actually showing. Requires a change to frameworks/base. Change-Id: Ie5645c0838a5c9e7c0a24be2dc42061a0cb534dc
* | Fix CTS test crashKristian Monsen2011-02-011-4/+6
|/ | | | Change-Id: If7027193d456ec986e9a9d61edc958d97cc1b653
* Merge "Reduce history item saving frequency when scrolling." into honeycombShimeng (Simon) Wang2011-01-311-1/+9
|\
| * Reduce history item saving frequency when scrolling.Shimeng (Simon) Wang2011-01-311-1/+9
| | | | | | | | | | | | | | This is to improve performance when scrolling large websites. issue: 3317722 Change-Id: Iffb5b3867af60be716fe9a2e395b8984d72b5284
* | Merge "Only set background tile color if it's valid. bug:3408110" into honeycombDave Burke2011-01-311-1/+2
|\ \ | |/ |/|
| * Only set background tile color if it's valid.Dave Burke2011-01-311-1/+2
| | | | | | | | | | | | bug:3408110 Change-Id: Ia5dc44623961786399e38bbf6e2afdb8a7206dce
* | For textareas, do not use UI side layers.Leon Scroggins2011-01-311-11/+8
|/ | | | | | | | | Bug:3402831 Bug:3401242 Requires a change in frameworks/base. Change-Id: I4d7525cbf3a881fbe87f4bc624988fcb79cceab1
* Fixed element positioning fixTeng-Hui Zhu2011-01-301-0/+2
| | | | | | | | | | | | | | | | | | This is for fixed bottom/ right, in the zooming case. The width and height in webkit should be calculated as the visibleRect we use for drawing. And that is document coordinate for visible size. Basically it is send the Rect info from webView to webViewCore. Then at RenderBox, it will go through the PlatformBridge to pick the info up. Notice that the touch is not 100% working yet, the layout call in webkit can have a early return such that fixed element layer didn't get update. And a touch/click is not really causing the whole layout update yet. That will be addressed in seperate change though. bug:3404129 Change-Id: I225d41815143a05d540ed32bfc76f823603ca89c
* Add Plugin API for controling the device power statesDerek Sollenberger2011-01-271-0/+17
| | | | | | | | | | This is an initial API that will allow the plugin to request to keep the screen on. companion change is in frameworks/base bug: 3331493 Change-Id: Id807dc3a3e5aaf12fc63558edeceee0d35561768
* Merge "Final polish of the WebView accessibility support for JavaAcript ↵Svetoslav Ganov2011-01-261-236/+492
|\ | | | | | | disabled case" into honeycomb
| * Final polish of the WebView accessibility support for JavaAcript disabled caseSvetoslav Ganov2011-01-261-236/+492
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:3316135 1. Now moving before the first item (word for example) and then going back reads that last item. This was not working before. 2. Restricted the selection to not cross anchor boundaries to workaround asymmetric behavior of the WebKit selection on the sentence granularity. 3. Added logic to avoid selection of invisible content. 4. Now the cursor is moved with the selection such that links can be activated while their text is read. 5. Now input controls are also traversed and the user can interact with them. For examle, silin in an input text. Change-Id: I5a796aef75679cbddf756680030e6bd06213afd9
* | Fix hit testing inside layers.Patrick Scott2011-01-261-2/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | A new webkit merge added a couple methods to ClipRects that were not copying the hit test rect. This make the clip rect empty during hit testing which was clipping out all nodes in scrollable layers. When tracking a layer, use the foreground layer if present as it will contain the right nodes. When looking for a scrollable layer, traverse the children in reverse drawing order to find the top-most visible layer. This allows orkut.com to scroll. Remove a couple of casts and headers. Use relaxAdoptionRequirement() to avoid a RefCounted assert. Swap the texture owner hash set during deletion as release can modify the iterator concurrently. Update the scrollbars (even though we don't have any) when scrolling a layer to keep the scroll position of the scrollbar in sync with the layer. Rewrite a little bit of PluginPackageAndroid. m_module may be non-null during load. If it is null, load the library and store it in m_module. Follow the regular path assuming m_module is not null. Bug: 3373179 Change-Id: If07ec9735b30c1e98e363667378a8d253a841a45
* Merge "Use platform bridge to control high usage delta MB." into honeycombShimeng (Simon) Wang2011-01-251-0/+3
|\
| * Use platform bridge to control high usage delta MB.Shimeng (Simon) Wang2011-01-241-0/+3
| | | | | | | | | | | | | | This change gives flexibility to change that value in Java side. issue: 3317722 Change-Id: I71a548871783cc604e0daec63e6bbfb26ecc1e1f
* | Use an integer to keep track of the blurring node.Leon Scroggins2011-01-251-17/+10
| | | | | | | | | | | | | | | | | | | | Bug:3387251 Rather than storing the actual pointer to the Node, since the pointer may no longer be valid and it is only used for comparison anyway. Change-Id: Icc6aabfa66c4a40b40fb6a8673d7ad34346360b6
* | Merge "Wait until the focus changes to hide keyboard." into honeycombLeon Scroggins2011-01-241-10/+28
|\ \
| * | Wait until the focus changes to hide keyboard.Leon Scroggins2011-01-241-10/+28
| |/ | | | | | | | | | | Bug:3376680 Change-Id: Ib5636a27183fbd94aff6817e0a5641c40db28649
* | Merge "Only revealSelection if scale has not changed." into honeycombLeon Scroggins2011-01-241-1/+4
|\ \
| * | Only revealSelection if scale has not changed.Leon Scroggins2011-01-241-1/+4
| |/ | | | | | | | | | | | | | | | | | | Bug:3383787 The intent of calling revealSelection was to show the text field when the IME is shown. If the scale changed, this was a zoom, not an opening of the IME. Change-Id: Idcb17c18eb7f90b79521da1ab1b48931808773d6
* | Fix for bug 3380288Kristian Monsen2011-01-241-3/+12
|/ | | | | | | Cannot create a WebRequestContext before we know if we should use private mode or not. Change-Id: I82b0dd67342a381ea1764c4d0457386ff7980be4