OSDN Git Service
Patrick Scott [Tue, 7 Jul 2009 15:11:15 +0000 (11:11 -0400)]
Use fRight and fBottom instead of width() and height().
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.
Android (Google) Code Review [Tue, 7 Jul 2009 16:47:24 +0000 (09:47 -0700)]
Merge change 6353
* changes:
plugins are now sent the correct coordinates even when the page is scrolled.
Derek Sollenberger [Tue, 7 Jul 2009 15:29:16 +0000 (11:29 -0400)]
fixing a typo in the android plugin api.
Derek Sollenberger [Tue, 7 Jul 2009 15:32:48 +0000 (11:32 -0400)]
plugins are now sent the correct coordinates even when the page is scrolled.
Leon Scroggins [Mon, 6 Jul 2009 18:30:20 +0000 (14:30 -0400)]
Update text webcore thread's text generation number.
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.
Grace Kloba [Tue, 7 Jul 2009 06:59:10 +0000 (23:59 -0700)]
am
b116c1a0: Make deep copy of the String when use them in the UI thread as 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.
Grace Kloba [Tue, 7 Jul 2009 01:30:11 +0000 (18:30 -0700)]
Make deep copy of the String when use them in the UI thread as AtomicString is not thread safe.
Feng Qian [Mon, 6 Jul 2009 18:23:28 +0000 (11:23 -0700)]
Avoid generating jsmin.pyc in the source directory.
Copy js2c.py and jsmin.py to intermediate directory first, then invoke the script there. Python generates a .pyc file in that directory.
Android (Google) Code Review [Mon, 6 Jul 2009 18:08:09 +0000 (11:08 -0700)]
Merge change 6213
* changes:
Added createView and attachView for playing embedded videos.
Patrick Scott [Thu, 2 Jul 2009 12:53:42 +0000 (08:53 -0400)]
Added createView and attachView for playing embedded videos.
Use a larger naturalSize (same as RenderReplaced intrinsic size). The real code
should report the size from the video once decoded.
Still need to implement setVisible to not show the VideoView when it isn't
actually visible. That would probably be a better spot to attach it to the view
system.
Android (Google) Code Review [Mon, 6 Jul 2009 17:23:14 +0000 (10:23 -0700)]
Merge change 6222
* changes:
Fix Mac build of mksnapshot
Grace Kloba [Mon, 6 Jul 2009 17:19:33 +0000 (10:19 -0700)]
Fix Mac build of mksnapshot
mksnapshot is a host program and it is platform dependent. Add rules to Makefiles so that it picks up the right file depending on the host platform.
Andrei Popescu [Mon, 6 Jul 2009 16:46:49 +0000 (17:46 +0100)]
Unbreak V8 build
Android (Google) Code Review [Mon, 6 Jul 2009 15:49:23 +0000 (08:49 -0700)]
Merge change 6070
* changes:
In WebTextView, check the focus before sending a key.
Leon Scroggins [Thu, 2 Jul 2009 14:40:58 +0000 (10:40 -0400)]
In WebTextView, check the focus before sending a key.
This fixes a bug where the DOM has moved the focus, but the WebTextView
is still sending keys to the old focus. Requires a change in
frameworks/base. This part of the change just gives WebView a way
to get a pointer to the currently focused node (regardless of the
cursor).
Ben Murdoch [Wed, 1 Jul 2009 19:02:08 +0000 (20:02 +0100)]
Enable workers w/JSC.
Android (Google) Code Review [Fri, 3 Jul 2009 07:15:08 +0000 (00:15 -0700)]
Merge change 6047
* changes:
Enable video when using V8
Android (Google) Code Review [Thu, 2 Jul 2009 22:32:52 +0000 (15:32 -0700)]
Merge change 5931
* changes:
Remove JavaScript node size in the instrumentation as it is using arena now. Added JSC namespace for the TimeCounter.
Android (Google) Code Review [Thu, 2 Jul 2009 19:10:24 +0000 (12:10 -0700)]
Merge change 6066
* changes:
added gain/loose focus support for plugins. (focus = eligible to receive user events)
Derek Sollenberger [Thu, 2 Jul 2009 14:02:25 +0000 (10:02 -0400)]
added gain/loose focus support for plugins. (focus = eligible to receive user events)
Andrei Popescu [Thu, 2 Jul 2009 11:58:41 +0000 (12:58 +0100)]
Enable video when using V8
Patrick Scott [Wed, 1 Jul 2009 21:18:51 +0000 (14:18 -0700)]
Patrick Scott [Wed, 1 Jul 2009 18:20:18 +0000 (11:20 -0700)]
Android (Google) Code Review [Wed, 1 Jul 2009 17:54:56 +0000 (10:54 -0700)]
Merge change 5936
* changes:
Add V8 snapshot to Makefile.
Feng Qian [Wed, 1 Jul 2009 17:51:31 +0000 (10:51 -0700)]
Add V8 snapshot to Makefile.
Snapshotting can be turned on by adding ENABLE_V8_SNAPSHOT in buildspec.mk file.
It is off by default. When it is turned on, the binary size is increased by about 370K, it only saves the first cold startup time of browser (or first time using JavaScript).
Grace Kloba [Wed, 1 Jul 2009 16:59:08 +0000 (09:59 -0700)]
Remove JavaScript node size in the instrumentation as it is using arena now. Added JSC namespace for the TimeCounter.
Cary Clark [Wed, 1 Jul 2009 14:16:03 +0000 (10:16 -0400)]
Update the nav cache when selected elements change or move
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.
Android (Google) Code Review [Tue, 30 Jun 2009 22:28:12 +0000 (15:28 -0700)]
Merge change 5846
* changes:
Pickup the latest V8 revision, prepare for snapshotting.
Feng Qian [Tue, 30 Jun 2009 22:26:06 +0000 (15:26 -0700)]
Pickup the latest V8 revision, prepare for snapshotting.
http://v8.googlecode.com/svn/branches/bleeding_edge@2313
Patrick Scott [Tue, 30 Jun 2009 18:43:34 +0000 (14:43 -0400)]
Same fix from donut. Use sizeof(UChar) * aLength for the correct comparison.
Patrick Scott [Tue, 30 Jun 2009 18:36:18 +0000 (14:36 -0400)]
Do not merge
Use 2 * aLength as Grace pointed out characters() returns UChar*.
Leon Scroggins [Tue, 30 Jun 2009 15:27:10 +0000 (11:27 -0400)]
Fix a WebView longpress bug.
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.
Patrick Scott [Tue, 30 Jun 2009 17:39:54 +0000 (13:39 -0400)]
Do not merge
Fix the alignment bug in donut. Only check for ARM since SH4 is in the newer
webkit.
Android (Google) Code Review [Tue, 30 Jun 2009 17:31:06 +0000 (10:31 -0700)]
Merge change 5783
* changes:
fix crash in browser map caused by misaligned string data compare
Cary Clark [Tue, 30 Jun 2009 17:14:48 +0000 (13:14 -0400)]
fix crash in browser map caused by misaligned string data compare
Leon Scroggins [Wed, 24 Jun 2009 21:12:00 +0000 (17:12 -0400)]
Make the caret/selection draw when gaining window focus.
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.
Android (Google) Code Review [Tue, 30 Jun 2009 14:10:13 +0000 (07:10 -0700)]
Merge change 5685
* changes:
Don't clip out nodes if the clip is an empty rectangle
Feng Qian [Tue, 30 Jun 2009 05:39:49 +0000 (22:39 -0700)]
Fix TouchEvent binding.
TouchEvent was treated as generic UIEvent, which does not have 'touches' property. That's why maps api demo does not work. This CL treats TouchEvent properly in the binding code.
Android (Google) Code Review [Tue, 30 Jun 2009 05:43:41 +0000 (22:43 -0700)]
Merge change 5717
* changes:
Remove incorrect comments
Grace Kloba [Tue, 30 Jun 2009 01:09:35 +0000 (18:09 -0700)]
resolved conflicts for merge of
dac9d5be to master
Feng Qian [Mon, 29 Jun 2009 23:59:26 +0000 (16:59 -0700)]
Remove incorrect comments
Also no need to change order between libv8 and libxml2.
Feng Qian [Mon, 29 Jun 2009 23:08:57 +0000 (16:08 -0700)]
Add SetJSFlags option in debug mode.
Android (Google) Code Review [Mon, 29 Jun 2009 22:51:43 +0000 (15:51 -0700)]
Merge change 5698
* changes:
Add logging.
Feng Qian [Mon, 29 Jun 2009 22:50:38 +0000 (15:50 -0700)]
Add logging.
Cary Clark [Mon, 29 Jun 2009 21:34:54 +0000 (17:34 -0400)]
Don't clip out nodes if the clip is an empty rectangle
http://b/issue?id=
1945476
Grace Kloba [Mon, 29 Jun 2009 21:21:26 +0000 (14:21 -0700)]
As WebKit takes "expires" as String, we can pass it directly with the rest of the headers.
Derek Sollenberger [Mon, 29 Jun 2009 17:46:51 +0000 (13:46 -0400)]
Adding support for plugins to request the keyboard.
Cary Clark [Thu, 25 Jun 2009 14:47:16 +0000 (10:47 -0400)]
Remove the web text view if the key press is abandoned
Requires companion change in frameworks/base
Cary Clark [Fri, 26 Jun 2009 18:29:51 +0000 (14:29 -0400)]
work in progress to enable plugins to receive arrow keys
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.
Grace Kloba [Fri, 26 Jun 2009 21:06:35 +0000 (14:06 -0700)]
Add JavaScript parsing into instrumentation. Also modify css parsing calculations.
Leon Scroggins [Fri, 26 Jun 2009 18:23:05 +0000 (14:23 -0400)]
Make clicking the trackball on a <select> element work.
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.
Android (Google) Code Review [Fri, 26 Jun 2009 17:02:56 +0000 (10:02 -0700)]
Merge change 5521
* changes:
Adding mouse events to the plugin API
Cary Clark [Fri, 26 Jun 2009 16:44:05 +0000 (09:44 -0700)]
am
14d2a338: Add security fix as seen in trac.webkit.org/changeset/44799
Merge commit '
14d2a338a0dd9fe7f2e7833ce90aed2f6eef6e34'
* commit '
14d2a338a0dd9fe7f2e7833ce90aed2f6eef6e34':
Add security fix as seen in http://trac.webkit.org/changeset/44799
Derek Sollenberger [Fri, 26 Jun 2009 16:28:10 +0000 (12:28 -0400)]
Adding mouse events to the plugin API
Cary Clark [Fri, 26 Jun 2009 16:21:00 +0000 (12:21 -0400)]
Add security fix as seen in trac.webkit.org/changeset/44799
Android (Google) Code Review [Fri, 26 Jun 2009 15:37:21 +0000 (08:37 -0700)]
Merge change 5445
* changes:
Fix a bug where sometimes the cursor was lost.
Leon Scroggins [Thu, 25 Jun 2009 23:58:39 +0000 (19:58 -0400)]
Fix a bug where sometimes the cursor was lost.
Create a new function that sets the cursor data to the WebViewCore,
and call it each time we change the cursor. Prior to this change,
by touching on a non-cursored, non-focused textfield, you could
set the cursor on the current CachedRoot without setting the data
on the WebViewCore. Then, when we get a new frame cache, we
check the data on the WebViewCore (which is out of date). Since
it does not think there was a cursor (or it thinks it was somewhere
else), we do not restore the cursor on the new cache. This change
fixes that by ensuring that the cursor information is up to date.
Android (Google) Code Review [Fri, 26 Jun 2009 13:00:23 +0000 (06:00 -0700)]
Merge change 5139
* changes:
Implement fullscreen video. Currently only load() and play() are supported. The rest of the MediaPlayerPrivate functionality will be added in a later CL.
Android (Google) Code Review [Fri, 26 Jun 2009 12:55:48 +0000 (05:55 -0700)]
Merge change 5092
* changes:
Implement V8 bindings for DOM Storage.
Ben Murdoch [Tue, 23 Jun 2009 10:07:28 +0000 (11:07 +0100)]
Implement V8 bindings for DOM Storage.
Leon Scroggins [Wed, 24 Jun 2009 17:44:25 +0000 (13:44 -0400)]
Invalidate the full rectangle of the highlight when clearing it.
In drawCursorRing, we potentially use a different value than bounds
for the cursor ring. If we use that other value, also use it for
the invalidation to clear it later.
Android (Google) Code Review [Thu, 25 Jun 2009 20:00:43 +0000 (13:00 -0700)]
Merge change 5393
* changes:
throttle plugin draws to 60fps, so we don't swamp the CPU to no visual avail.
Mike Reed [Thu, 25 Jun 2009 19:50:19 +0000 (15:50 -0400)]
throttle plugin draws to 60fps, so we don't swamp the CPU to no visual avail.
Android (Google) Code Review [Thu, 25 Jun 2009 17:15:46 +0000 (10:15 -0700)]
Merge change 4840
* changes:
Fix for the new webkit. "expires" now takes the string instead of int.
Grace Kloba [Fri, 19 Jun 2009 22:50:36 +0000 (15:50 -0700)]
Fix for the new webkit. "expires" now takes the string instead of int.
Jack Palevich [Thu, 25 Jun 2009 16:39:53 +0000 (09:39 -0700)]
Make this host tool compile with GCC 4.4
It has a dependency on cstdio (aka stdio.h), but was not explicitly
including it. In previous versions of GCC the cstdio file was implictly
included as a side-effect of including another library.
This change is backwards compatible with earlier versions of GCC.
Andrei Popescu [Mon, 22 Jun 2009 11:19:41 +0000 (12:19 +0100)]
Implement fullscreen video. Currently only load() and play() are supported. The rest of the MediaPlayerPrivate functionality will be added in a later CL.
Android (Google) Code Review [Wed, 24 Jun 2009 20:48:30 +0000 (13:48 -0700)]
Merge change 5219
* changes:
add zoom field to visibleRect event
Mike Reed [Wed, 24 Jun 2009 17:39:19 +0000 (13:39 -0400)]
add zoom field to visibleRect event
Android (Google) Code Review [Wed, 24 Jun 2009 19:51:36 +0000 (12:51 -0700)]
Merge change 5073
* changes:
Remove a define which is no longer used.
Android (Google) Code Review [Wed, 24 Jun 2009 18:20:12 +0000 (11:20 -0700)]
Merge change 5216
* changes:
Make buttons draw their state properly.
Cary Clark [Wed, 24 Jun 2009 15:27:13 +0000 (11:27 -0400)]
set trackball click to the edge of the text field, not the middle
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
Leon Scroggins [Tue, 23 Jun 2009 14:49:39 +0000 (10:49 -0400)]
Remove a define which is no longer used.
Leon Scroggins [Wed, 24 Jun 2009 17:00:56 +0000 (13:00 -0400)]
Make buttons draw their state properly.
Fix for http://b/issue?id=
1936210. When we merged the latest
WebKit, we lost an api we used, and in the code change we
reversed enabled and disabled buttons.
Android (Google) Code Review [Wed, 24 Jun 2009 13:02:35 +0000 (06:02 -0700)]
Merge change 5202
* changes:
rename setXfermode(Mode) to setXfermodeMode(...) for clarity
Mike Reed [Wed, 24 Jun 2009 12:59:06 +0000 (08:59 -0400)]
rename setXfermode(Mode) to setXfermodeMode(...) for clarity
Android (Google) Code Review [Wed, 24 Jun 2009 12:21:44 +0000 (05:21 -0700)]
Merge change 5111
* changes:
Adding keyEvent support for plugins.
Android (Google) Code Review [Tue, 23 Jun 2009 23:04:34 +0000 (16:04 -0700)]
Merge change 5146
* changes:
Build libv8 as a static library.
Feng Qian [Tue, 23 Jun 2009 23:03:03 +0000 (16:03 -0700)]
Build libv8 as a static library.
So no need to change prelink map.
Derek Sollenberger [Tue, 23 Jun 2009 20:15:43 +0000 (16:15 -0400)]
Adding keyEvent support for plugins.
Android (Google) Code Review [Tue, 23 Jun 2009 19:54:06 +0000 (12:54 -0700)]
Merge change 5064
* changes:
Merge commit '
d768f1ca' into manualmerge
Android (Google) Code Review [Tue, 23 Jun 2009 17:15:45 +0000 (10:15 -0700)]
Merge change 5080
* changes:
Workaround gcc4.4. issue.
Feng Qian [Tue, 23 Jun 2009 16:44:26 +0000 (09:44 -0700)]
Workaround gcc4.4. issue.
I am upstreaming the change to v8 code.
Leon Scroggins [Tue, 23 Jun 2009 14:24:09 +0000 (10:24 -0400)]
Fix <select with multiple and/or size > 1.
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.
Android (Google) Code Review [Tue, 23 Jun 2009 13:48:12 +0000 (06:48 -0700)]
Merge change 5069
* changes:
remove references to deprecated porterduff
Mike Reed [Tue, 23 Jun 2009 12:50:20 +0000 (08:50 -0400)]
remove references to deprecated porterduff
Sriram Raman [Tue, 23 Jun 2009 08:24:04 +0000 (01:24 -0700)]
Merge commit '
d768f1ca' into manualmerge
Conflicts:
perf/Android.mk
Sriram Raman [Tue, 23 Jun 2009 00:22:02 +0000 (17:22 -0700)]
Remove webcore-tests from test build
Feng Qian [Mon, 22 Jun 2009 22:51:02 +0000 (15:51 -0700)]
Fix V8 build.
Android (Google) Code Review [Mon, 22 Jun 2009 22:12:09 +0000 (15:12 -0700)]
Merge change 4973
* changes:
Make ENABLE_VIDEO configurable.
Feng Qian [Mon, 22 Jun 2009 22:08:24 +0000 (15:08 -0700)]
Make ENABLE_VIDEO configurable.
Cary Clark [Mon, 22 Jun 2009 18:59:32 +0000 (14:59 -0400)]
Don't draw focus ring around plugin when clicking on it
Android (Google) Code Review [Mon, 22 Jun 2009 19:21:21 +0000 (12:21 -0700)]
Merge change 4949
* changes:
webkit added their own initializeBrowserFuncs(), so we need to now call both theirs and ours
Mike Reed [Mon, 22 Jun 2009 19:08:22 +0000 (15:08 -0400)]
webkit added their own initializeBrowserFuncs(), so we need to now call both theirs and ours
Android (Google) Code Review [Mon, 22 Jun 2009 18:40:26 +0000 (11:40 -0700)]
Merge change 4941
* changes:
Remove ANDROID_USER_GESTURE as the bug it fixed no longer applies.
Patrick Scott [Mon, 22 Jun 2009 18:16:36 +0000 (14:16 -0400)]
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.
Cary Clark [Mon, 22 Jun 2009 17:04:11 +0000 (13:04 -0400)]
rebuild WebView nav cache on trackball move, other bugs
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.
Derek Sollenberger [Fri, 19 Jun 2009 19:57:24 +0000 (15:57 -0400)]
Providing plugins with scrolling ability as well as an event informing the plugin of the document's visibleRect.
Feng Qian [Sat, 20 Jun 2009 01:07:09 +0000 (18:07 -0700)]
Merged changed from Chromium r18043.
Need to delete V8MessagePortCustom.cpp.
Android (Google) Code Review [Sat, 20 Jun 2009 00:38:13 +0000 (17:38 -0700)]
Merge change 4868
* changes:
Renaming bindings to binding.