OSDN Git Service
Feng Qian [Tue, 14 Jul 2009 20:20:05 +0000 (13:20 -0700)]
Pick up a bug fix from Chromium.
The same fix is upstreamed to WebKit.
Feng Qian [Tue, 14 Jul 2009 00:19:46 +0000 (17:19 -0700)]
Rename ENABLE_V8 to USE_ALT_JS_ENGINE.
Prepare for the buildbot for both JS engines.
Feng Qian [Mon, 13 Jul 2009 23:30:18 +0000 (16:30 -0700)]
Update V8 to bleeding_edge@2450 to pick up a few important fixes.
API stays the same, and the same revision is pushed to Chromium.
Feng Qian [Mon, 13 Jul 2009 21:44:34 +0000 (14:44 -0700)]
Simplify Ben's previous commit.
I am going to submit the same patch to WebKit.
Ben Murdoch [Mon, 13 Jul 2009 19:50:37 +0000 (20:50 +0100)]
Add a virtual destructor to V8DOMMap when NDEBUG is defined.
(cherry picked from commit
7f4f9d6e0f3d335bfa57be22dfe7eb421f51a4da)
Feng Qian [Fri, 10 Jul 2009 23:13:29 +0000 (16:13 -0700)]
Fix a memory leak caused by the binding code.
Old code reinitialize a context when a frame loading a new page, even when the page does not have JavaScript. It also initializes an empty context when before an iframe is destroyed.
A fix is made to Chromium project (not it is in WebKit), our next merge should pick up this fix.
Mike Reed [Fri, 10 Jul 2009 19:32:24 +0000 (15:32 -0400)]
rename libsgl/libcorecg to libskia
Android (Google) Code Review [Fri, 10 Jul 2009 13:42:10 +0000 (06:42 -0700)]
Merge change 6306
* changes:
hide the cursor when the link is followed
Patrick Scott [Fri, 10 Jul 2009 13:22:27 +0000 (06:22 -0700)]
Patrick Scott [Fri, 10 Jul 2009 11:59:59 +0000 (07:59 -0400)]
Do not merge.
2nd attempt to fix the icon database crash. This time, make sure there is only 1
line in the change.
Mike LeBeau [Thu, 9 Jul 2009 22:46:24 +0000 (15:46 -0700)]
Merge commit '
c0957e2d' into manualmerge
Mike LeBeau [Thu, 9 Jul 2009 22:20:51 +0000 (15:20 -0700)]
Revert phanna's change which broke the build.
This reverts commit
91f07d3317527703031378a388bc92853479d6a8.
Android (Google) Code Review [Thu, 9 Jul 2009 20:39:49 +0000 (13:39 -0700)]
Android (Google) Code Review [Thu, 9 Jul 2009 20:38:12 +0000 (13:38 -0700)]
Merge change 6642 into donut
* changes:
Do not merge
Grace Kloba [Thu, 9 Jul 2009 19:50:10 +0000 (12:50 -0700)]
am
cb86952d: Fix #
1896846. Move reset the meta data from canHandleRequest to transitionToCommittedForNewPage as canHandleRequest may not trigger to go to a new page. For example, if a link is to open in a new window, even canHandleRequest returns true, the current pag
Merge commit '
cb86952d254446a800421b5804f886f8d87cd875'
* commit '
cb86952d254446a800421b5804f886f8d87cd875':
Fix #
1896846. Move reset the meta data from canHandleRequest to transitionToCommittedForNewPage as canHandleRequest may not trigger to go to a new page. For example, if a link is to open in a new window, even canHandleRequest returns true, the current page doesn't switch to a new page. So we should not reset the meta data.
Patrick Scott [Thu, 9 Jul 2009 18:55:03 +0000 (14:55 -0400)]
Do not merge
Pull down http://trac.webkit.org/changeset/42163 to fix the icon database crash.
I believe the issue was that m_syncThreadRunning could have been initialized to
false if the moons aligned. When the Browser quits, it closes the icon db. If
m_syncThreadRunning happened to be false, the close method would not wait for
the sync thread to complete before cleaning up (and closing) the sqlite
database. I think that caused the underlying db to be null within sqlite.
Android (Google) Code Review [Thu, 9 Jul 2009 16:02:31 +0000 (09:02 -0700)]
Merge change 6627
* changes:
Pickup two ARM fixes.
Feng Qian [Thu, 9 Jul 2009 15:57:09 +0000 (08:57 -0700)]
Pickup two ARM fixes.
http://codereview.chromium.org/155272
http://codereview.chromium.org/149266
Next drop of V8 will get both.
Android (Google) Code Review [Thu, 9 Jul 2009 13:39:44 +0000 (06:39 -0700)]
Merge change 6357
* changes:
Add fullscreen support back in.
Grace Kloba [Thu, 9 Jul 2009 00:32:41 +0000 (17:32 -0700)]
Fix #
1896846. Move reset the meta data from canHandleRequest to transitionToCommittedForNewPage as canHandleRequest may not trigger to go to a new page. For example, if a link is to open in a new window, even canHandleRequest returns true, the current page doesn't switch to a new page. So we should not reset the meta data.
Feng Qian [Wed, 8 Jul 2009 23:01:46 +0000 (16:01 -0700)]
Pickup two crash fixes from V8 tree:
http://code.google.com/p/v8/source/detail?r=2400
http://code.google.com/p/v8/source/detail?r=2399
Our next dropin will get both fixes.
Grace Kloba [Wed, 8 Jul 2009 18:06:09 +0000 (11:06 -0700)]
Add instrumentation for V8.
Derek Sollenberger [Wed, 8 Jul 2009 15:12:17 +0000 (11:12 -0400)]
Ensuring the plugin maintains control of the nav keys until it explicity releases them.
Android (Google) Code Review [Wed, 8 Jul 2009 09:38:46 +0000 (02:38 -0700)]
Merge change 6349
* changes:
Cherry pick fix for webkit bug 25711 (https://bugs.webkit.org/show_bug.cgi?id=25711) landed in r45594. Fixes a bug in the Database API that caused the underlying SQLite DB to become locked until browser restart.
Feng Qian [Tue, 7 Jul 2009 22:22:06 +0000 (15:22 -0700)]
Update V8 to r2361, which is a trunk revision pushed to Chrome.
Also changed compilation generation to 1 on ARM, the same change is made into V8 trunk.
Feng Qian [Tue, 7 Jul 2009 20:55:58 +0000 (13:55 -0700)]
Separate V8 logging from debugging flags.
Support both ENABLE_V8_LOGGING_AND_PROFILING, DEBUG_V8 flags.
To enable logging, one can set JS flags to
--logfile /sdcard/v8.log --log_gc (or other options).
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.
Andrei Popescu [Fri, 3 Jul 2009 07:20:39 +0000 (08:20 +0100)]
Add fullscreen support back in.
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.
Ben Murdoch [Tue, 7 Jul 2009 14:48:22 +0000 (15:48 +0100)]
Cherry pick fix for webkit bug 25711 (https://bugs.webkit.org/show_bug.cgi?id=25711) landed in r45594. Fixes a bug in the Database API that caused the underlying SQLite DB to become locked until browser restart.
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.
Cary Clark [Mon, 6 Jul 2009 22:58:40 +0000 (15:58 -0700)]
hide the cursor when the link is followed
The cursor position is preserved, so additional trackball
navigation will start from where the cursor ring was drawn
last. Hiding the cursor gets rid of confusion where the
cursor ring stays visible when clicking on a link that
does not go to a new page, or when the new page has a
link at the same physical location as the old page.
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.