summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav/CacheBuilder.cpp
Commit message (Collapse)AuthorAgeFilesLines
* address detection may look at uninitialized memoryCary Clark2009-10-061-19/+8
| | | | | | | | | Address detection on web pages creates arrays of pointers to words, and compares them against a set of permitted street types. This change adds the array of end pointers so that the check does not look past the end of the word. Fixes http://b/issue?id=2166591
* Fix a few crashes with assertions enabled.Patrick Scott2009-09-291-1/+1
| | | | | KURL::protocolIs no longer likes "javascript" and has a different method called protocolIsJavaScript.
* fix address detection when the city and state are both valid statesCary Clark2009-08-251-4/+25
| | | | | | | | | | | | | | | This fixes detecting "4 E. 86th St New York, NY" The old logic found 'New York' and assumed that St was the city name. Since 86th is not a valid street suffix, the test failed. The new logic looks for a valid street suffix instead of skipping 'city'. If it finds one, and the subsequent street suffix test fails, it resets to search again for a valid state name while retaining the starting point for the address (the street number). Fixing this exposed a bug in the zip code detection code where it dropped the first character of the actual state name.
* am b116c1a0: Make deep copy of the String when use them in the UI thread as ↵Grace Kloba2009-07-061-2/+2
|\ | | | | | | | | | | | | | | | | AtomicString is not thread safe. Merge commit 'b116c1a08412db8a748998c7e8a2ce851cbacacd' * commit 'b116c1a08412db8a748998c7e8a2ce851cbacacd': Make deep copy of the String when use them in the UI thread as AtomicString is not thread safe.
| * Make deep copy of the String when use them in the UI thread as AtomicString ↵Grace Kloba2009-07-061-3/+3
| | | | | | | | is not thread safe.
* | Don't clip out nodes if the clip is an empty rectangleCary Clark2009-06-291-1/+1
| | | | | | | | http://b/issue?id=1945476
* | set trackball click to the edge of the text field, not the middleCary Clark2009-06-241-1/+1
| | | | | | | | | | | | | | | | Add clicking, key debug statements in WebViewCore.cpp. Fix dumping nav tree to use NamedNodeMap. Set click point to be start of text field, end of text area, middle of others. Make CachedRoot::getSimulatedMousePosition, callers const
* | add WebView.FindAddress option to ignore case sensitivityCary Clark2009-06-171-1/+5
| | | | | | | | | | | | | | | | New public interface is set @hide for now. Old interface uses the new one. Requires a companion change to frameworks/base http://b/issue?id=1649036
* | fix webkit hidden cursor, address crashCary Clark2009-06-161-1/+1
| | | | | | | | | | | | | | | | http://b/issue?id=1918891 set cursor node hidden to 'true' to hide it also fixing crash if detecting text address runs out of text to look at
* | more (browser) trackball-is-a-mouse work in progressCary Clark2009-06-111-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebViewCore.cpp: Add parameter to CachedRoot::findAt to suppress check for hidden nodes. This helps find a best match for newly built nav caches. Require that the new cursor node closely match the bounds of the prior cursor node. This may need tuning. CacheBuilder.cpp: Remove isInput flag on cached nodes (no longer used) CachedFrame.cpp: Add hideCursor to complement clearCursor. Hide prevents the cursor from drawing but does not move it. Clear removes it altogether so that the next movement starts from the viewPort edge. CachedHistory.cpp: Don't special case text fields when doing history navigation. This special casing in part allowed setting the focus to the homepage input, but since focus is no longer set by nav, it is not required. CachedNode.cpp: Add hideCursor; clean up debugging CachedRoot.cpp: Use navBounds from history instead of cursor bounds to determine next move. Clean up some obsolete code. WebView.cpp: Add hideCursor; call it when appropriate.
* | use absolute bounds, not node bounds, for all webkit nodesCary Clark2009-06-041-24/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several years ago, the absolute bounds reported by webkit for nodes other than anchors were sometimes wildly different than the node bounds. Nowadays, the absolute bounds are used by iPhone to show hot spots and are more accurate. When nodes are added on the fly, their node bounds may be uncomputed, so the added nodes may not show up in the nav cache. Using the absolute bounds instead makes these nodes visible. Also, removed a special case for Bank of America, tied to the node bounds (not absolute bounds) since it is no longer applicable. Remove unused local min focusable width and height.
* | remove unneeded text parameters from WebViewCary Clark2009-06-031-1/+3
| | | | | | | | | | | | | | | | | | Add convenience routines to consolidate cache builder and current focus fetches into one place. Remove unused functions. Use wantsKeyEvents attribute where applicable.
* | in the browser, make the trackball more like a mouseCary Clark2009-06-011-43/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Older code treated the trackball as a four way dpad with equivalents to moving up, down, left and right by generating arrow key events. This change makes the trackball solely generate mousemove events. The old arrow keys in turn were mapped to be as close as possible to tab-key events that moved the focus. The new model leaves focus-changes to the DOM. Clicking the dpad is distinguished from pressing the enter key to be more compatible with desktop-authored web pages.
* | Fix some unexpected cases of image maps.Leon Scroggins2009-04-231-83/+29
| | | | | | | | Fix for buganizer issue 1800613: Image map not accessible. We were attempting to cache associtations of <area> elements to their RenderImages so we would not have to search for them. However, we were storing them in CacheBuilder. When we search for them, we search in the <area> element's frame, even though when we built the cache, we stored it in the main frame. Another issue arose on a page where <area> elements show up before their RenderImages. In this case, we were storing an empty rectangle for the bounds, and caching the associations afterwards, when it was too late. In order to clean up/simplify things, while fixing both bugs, I have changed validNode into a static function which takes the starting Frame as a parameter. Any time we need to find the rectangle of an <area> element, we have to traverse the DOM to find its associated RenderImage. This may be slower, but it will always get the correct answer. In the future, we may need to investigate a universal location for caching the associations for better performance.
* | remove obsolete browser nav cache debug dumpCary Clark2009-04-201-61/+0
| | | | | | | | | | | | The render tree has changed and the old dump logic no longer compiles. This output isn't used anymore, so remove it.
* | AI 145877: Fix the sim-debug build due to the changes in the new WebKit.Grace Kloba2009-04-131-3/+5
| | | | | | | | Automated import of CL 145877
* | AI 145796: Land the WebKit merge @r42026.Feng Qian2009-04-101-59/+88
| | | | | | | | Automated import of CL 145796
* | Automated import from //branches/master/...@142932,142932Patrick Scott2009-03-261-1/+1
|/
* auto import from //depot/cupcake/@136594The Android Open Source Project2009-03-051-64/+25
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+3076
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-3072/+0
|
* auto import from //depot/cupcake/@132589The Android Open Source Project2009-03-031-6/+2
|
* auto import from //depot/cupcake/@137055The Android Open Source Project2009-03-021-2/+6
|
* auto import from //branches/cupcake/...@131421The Android Open Source Project2009-02-131-0/+1
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-10/+35
|
* auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-151-48/+66
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-18/+29
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+3017