| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
While the page is loading, the nav cache is not rebuilt.
Double-click zooms out the web page by using the nav cache to
find the left edge of the column -- but fails to work during
page load. This change rebuilds the nav cache (if the page is
loading) each time a mouse click is sent to webkit.
This doesn't fix the bug where the first double click doesn't
align the column correctly, but helps with subsequent clicks.
Also, pass scale information to getBlockLeftEdge so it can
restrict its search to the area that will be zoomed to. Default
to the point clicked if no alignment info can be found.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Also, delete threadData if pthread_create fails. This is a rare occurance but we
don't want to leak memory just in case.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add api to get the left edge of the block from the current (x,y). The code
was copied from Cary's change.
Todo:
1.need some tuning as we can see from nytimes.com that some times the left
edge is not correct.
2.currently nav cache is not up to date while loading. This means the left
edge may not be correct during loading.
3.if (x,y) is over an edit text box, or image, it should return the left
edge of it. Currently it is not working as expected.
Added the code to store the extra scale factor, so that back/forward history
works correctly.
|
|
|
|
|
| |
When the WebTextView scrolls, scroll the corresponding RenderTextControl
in webkit. Requires a change in frameworks/base.
|
|\
| |
| |
| |
| | |
* changes:
Enforce app cache maximum size
|
| | |
|
|\ \
| |/
|/|
| |
| |
| |
| | |
Merge commit '70522f5f5fb44f2f4df7a08aa64263c619e299cb'
* commit '70522f5f5fb44f2f4df7a08aa64263c619e299cb':
adjust right edge of copy bounds if edge is not found
|
| |
| |
| |
| |
| |
| |
| | |
Sometimes the right edge of the copy rectangle misses the
right-most character to be copied. An earlier change over-
compensated by moving the edge boundary by 2. Now, move
the edge boundary by 1, and if that fails, try 2.
|
| | |
|
| |
| |
| |
| |
| |
| | |
Merge 2390 from master to donut.
Added postUrl() to WebView so that we can pass lat/lon for the search.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
SurfaceCallback: An interface used to receive the surface change events. The
PluginSurface then sends those events to the actual plugin.
PluginSurface: A wrapper around the native Surface object obtained from the Java
SurfaceView. This object can lock and unlock the surface and takes care of
creating, positioning and destroying the Java SurfaceView.
Changed PluginWidgetAndroid to not use SkFlipPixelRef when the drawing model is
Surface.
|
| |
| |
| |
| |
| |
| | |
With only turning on request management (no fine tuning of parameters), loading
cnn.com was 3-4 seconds faster and the main content displayed about 1-2 seconds
sooner.
|
| |
| |
| |
| |
| |
| | |
The methods width() and height() take in to account negative values for fLeft
and fTop. This can cause the width and height to be larger than the visible
rectangle which was causing cnn.com to grow arbitrarily large.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
When the user edits text in a textfield, we increase a generation
number so we can mark changes from webkit to be out of date. With
this change, update webcore's notion of the text generation number
in deleteSelection and replaceTextfieldText, in addition to
passToJs. Requires a change in frameworks/base.
|
| |
| |
| |
| | |
user events)
|
| |
| |
| |
| |
| |
| | |
This helps superpudu recompute the cursor ring more
frequently when the floating bar moves. It also helps
update the nav cache when navigating during a page load.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Longpressing on a WebView while the WebTextView is up calls
WebTextView::performLongPress(). This used to be fine, but now
we may still leave the WebTextView up while the user is longpressing
on something else. Check to ensure that the focus is the same
as the cursor before calling WebTextView's version. Also,
send a click if the user longpresses on a different WebTextView,
so it will now behave appropriately. Requires a change in
frameworks/base.
Provide a setter on CachedHistory to set the mousebounds, and
set it in selectBestAt, so that getSimulatedMousePosition
uses the correct information. Also edit some comments to refer
to the cursor rather than the focus. In WebView.cpp, use
the delete TypingCommand, making deleting and cutting work
once again.
|
| |
| |
| |
| |
| |
| |
| | |
When the WebView loses WindowFocus, we stop drawing the
selection. We need to resume drawing it, especially for
the context menu, which steals WindowFocus. Corresponds
to a change in frameworks.
|
| |
| |
| |
| | |
Also no need to change order between libv8 and libxml2.
|
| | |
|
| |
| |
| |
| | |
of the headers.
|
| | |
|
| |
| |
| |
| | |
Requires companion change in frameworks/base
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Consolidate key handling. Simplify interface between android
and webkit so multiple clients can use common code to pass keys.
Add helper to return if cached node is plugin.
Use WebView::m_clickedOnPlugin to remember active plugins.
Add WebView.MOVE_CURSOR to replay key events the plugin
doesn't want.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Optionally pass a frame and node pointer to nativeClick, since
the hit testing does not find the HTMLSelectElement node. Also
change the signature of nativeClick to return void, since
we never use the return value. Requires a change in
frameworks/base.
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
throttle plugin draws to 60fps, so we don't swamp the CPU to no visual avail.
|
| | | |
|
|/ / |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
With the latest WebKit drop we lost a hack we had to make ListBoxes
behave like MenuLists. Rather than reviving it, now in WebViewCore
check for isListBox(). This makes a click once again open the list
so the user can choose the selection. Also disable WebKit's drawing
of the text shown, and simply draw it ourselves, so we can draw
nothing or the first item selected.
|
| | |
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Remove ANDROID_USER_GESTURE as the bug it fixed no longer applies.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
I tested the original bug and found that without this change, the link works
perfectly fine. The only thing that does not work with this change is redirects
within iframes that are to non-http protocols. This is ok since iframes can
always change the parent window's location if this is the desired behavior.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When the WebViewCore picture set is recomputed, check
to see if the trackball has moved since the last time.
If so, rebuild the nav cache even if dom version checking
is disabled.
If there's no focus node ready to receive a key event,
check to see if the cursor is hovering over a plugin, and
give it the event instead.
Update all cursor state in both places it could change.
|
|/ /
| |
| |
| | |
plugin of the document's visibleRect.
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Ues loadFrameRequest instead of loadPostRequest so that we don't need to change WebKit any more.
|
| | |
| | |
| | |
| | | |
change WebKit any more.
|
|/ /
| |
| |
| |
| |
| |
| | |
Remove a webkit change that makes some functions public for our
use. Instead, use a pointer to a base class where those functions
are already public. In one case where a function has been removed,
call another function which behaves the same.
|