OSDN Git Service
Andrei Popescu [Wed, 22 Jul 2009 15:52:03 +0000 (16:52 +0100)]
Enforce app cache maximum size
Android (Google) Code Review [Wed, 22 Jul 2009 07:44:49 +0000 (00:44 -0700)]
Merge change 8031
* changes:
wire the appcache to the HTML5 UI
Android (Google) Code Review [Wed, 22 Jul 2009 07:44:09 +0000 (00:44 -0700)]
Merge change 8010
* changes:
Implements a mechanism that limit the growth of the application cache
Android (Google) Code Review [Wed, 22 Jul 2009 07:43:44 +0000 (00:43 -0700)]
Merge change 8009
* changes:
Add TODO(andreip) to those v8 binding files that have Android-specific modifications that may need fixing/upstreaming/etc
Feng Qian [Wed, 22 Jul 2009 04:46:21 +0000 (21:46 -0700)]
Turn on V8 by default.
This change requires clean libwebcore, but I saw there are three clean libwebcore_intermediates steps in build/cleanspec.mk already. Do I need to add another one?
Android (Google) Code Review [Tue, 21 Jul 2009 20:29:00 +0000 (13:29 -0700)]
Merge change 8047
* changes:
Check for xml and text mime types through DOMImplementation.
Patrick Scott [Tue, 21 Jul 2009 19:44:25 +0000 (15:44 -0400)]
Fix a crash in plugins.
Patrick Scott [Tue, 21 Jul 2009 18:35:24 +0000 (14:35 -0400)]
Check for xml and text mime types through DOMImplementation.
This change in conjunction with a change in MimeTypeMap allows text extensions
to map to text/* mime types. Previously, a text mime type would be downloaded
instead of displayed if MimeTypeMap mapped a text extension to an unknown text
mime type. Use DOMImplementation to check for xml and text mime types since it
will compare the mime type to "text/"
Andrei Popescu [Tue, 21 Jul 2009 11:48:46 +0000 (12:48 +0100)]
Add TODO(andreip) to those v8 binding files that have Android-specific modifications that may need fixing/upstreaming/etc
Andrei Popescu [Tue, 21 Jul 2009 15:49:08 +0000 (16:49 +0100)]
wire the appcache to the HTML5 UI
Andrei Popescu [Tue, 21 Jul 2009 12:10:06 +0000 (13:10 +0100)]
Implements a mechanism that limit the growth of the application cache
Feng Qian [Mon, 20 Jul 2009 22:05:22 +0000 (15:05 -0700)]
Experiment a different GC policy.
Smaller promotion limit makes mark-compact GC more often, but may use less memory.
Android (Google) Code Review [Mon, 20 Jul 2009 20:13:27 +0000 (13:13 -0700)]
Merge change 7878
* changes:
removing visibleRect event and tracking rectangles instead.
Derek Sollenberger [Mon, 20 Jul 2009 13:45:56 +0000 (09:45 -0400)]
removing visibleRect event and tracking rectangles instead.
Feng Qian [Mon, 20 Jul 2009 17:22:00 +0000 (10:22 -0700)]
Experiment no GC before loading new page.
I want to check this change in to see the page load time on page cyclers.
Patrick Scott [Mon, 20 Jul 2009 15:35:23 +0000 (11:35 -0400)]
Remove format until plugins either need to know or ask to change it.
Patrick Scott [Fri, 17 Jul 2009 20:40:38 +0000 (16:40 -0400)]
Add Plugin APIs for creating and manipulating a Surface.
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.
Feng Qian [Sat, 18 Jul 2009 05:43:49 +0000 (22:43 -0700)]
Add indexed getter for TouchList.
http://maps.google.com/maps/m uses TouchEvent.touches[i], which requires a customized index getter.
Android (Google) Code Review [Sat, 18 Jul 2009 00:21:58 +0000 (17:21 -0700)]
Merge change 7772
* changes:
Initialize context if a frame had an empty global object.
Feng Qian [Fri, 17 Jul 2009 22:49:21 +0000 (15:49 -0700)]
Initialize context if a frame had an empty global object.
When a frame navigates to a new page, the global object is detached from its
old context. However, if the new page has no JavaScript, its new context is not initialized. If another page kept a reference to the global object of the old page and tries to access the new page, it will fail because the context of new page is not initialized so the global object is connected to a real context.
Mike Reed [Fri, 17 Jul 2009 19:53:27 +0000 (15:53 -0400)]
add fontdir api for plugins
remove unneeded fonttable apis
Derek Sollenberger [Thu, 16 Jul 2009 15:32:55 +0000 (11:32 -0400)]
Adding plugin support for an RGBA surface view.
Android (Google) Code Review [Thu, 16 Jul 2009 15:53:22 +0000 (08:53 -0700)]
Merge change 7500
* changes:
Convert Java string to JavaScript string.
Feng Qian [Thu, 16 Jul 2009 02:16:35 +0000 (19:16 -0700)]
Convert Java string to JavaScript string.
This allows JavaScript call a Java function and returns a string back to JavaScript. This patch is needed by the current Gmail app.
Patrick Scott [Tue, 14 Jul 2009 19:53:55 +0000 (15:53 -0400)]
Turn on webcore's request management and remove our hacks.
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.
Feng Qian [Wed, 15 Jul 2009 18:12:34 +0000 (11:12 -0700)]
Fix build error of mksnapshot
After hooking up Android log facility, mksnapshot depends on liblog now.
Feng Qian [Wed, 15 Jul 2009 17:53:48 +0000 (10:53 -0700)]
Quick fix of makefile
Command line start with # instead of //
Feng Qian [Wed, 15 Jul 2009 16:40:17 +0000 (09:40 -0700)]
Use JS_ENGINE environment to control which JS engine to use.
Jean-Baptiste Queru [Wed, 15 Jul 2009 00:12:14 +0000 (17:12 -0700)]
Merge commit 'goog/readonly-korg-master' into merge_korg_master
Android (Google) Code Review [Tue, 14 Jul 2009 22:42:46 +0000 (15:42 -0700)]
Merge change 7155
* changes:
Make some adjustment on heap parameters on Android platform.
Feng Qian [Tue, 14 Jul 2009 22:28:52 +0000 (15:28 -0700)]
Make some adjustment on heap parameters on Android platform.
1. reduced pages per chunk to 16, so a chunk is 128K, instead of 512K
2. free all clean chunks when shrink spaces.
3. renamed some macros to if defined(ANDROID).
All changes are being upstreamed to V8.
Android (Google) Code Review [Tue, 14 Jul 2009 20:53:27 +0000 (13:53 -0700)]
Merge change 7130
* changes:
Pick up a bug fix from Chromium.
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 17:35:23 +0000 (10:35 -0700)]
Pick up a fix in V8 binding.
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.