summaryrefslogtreecommitdiffstats
path: root/WebCore
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup BaseTile and BackedDoubleBufferedTexture classes.Derek Sollenberger2010-10-198-152/+155
| | | | | | | | The cleanup consists of: 1. removing unused variables and functions 2. refactoring the backed texture to reduce number of exposed variables Change-Id: I8a36725f61c5ecd77b7a215ec75a7b8129bf56af
* Fix potential deadlock when acquiring a textureNicolas Roard2010-10-151-1/+2
| | | | Change-Id: Ie24613c69fd048b14003f7cbc3ad0c86ba4e295e
* Merge "Implement the document.createTouch and document.createTouchList APIs"Andrei Popescu2010-10-1512-1/+151
|\
| * Implement the document.createTouch and document.createTouchList APIsBen Murdoch2010-10-1512-1/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are Apple extensions to the document object present on iOS and are used by several sites to detect touch event support. See http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html for Apple's documentation. Upstreaming to webkit being tracked in https://bugs.webkit.org/show_bug.cgi?id=47676 Bug: 2996106 Change-Id: I761b1494af60b5095ad9c47d54eb7240d47ae985
* | Fix a crash when deleting GraphicsContextPlatformPrivateSteve Block2010-10-151-3/+3
| | | | | | | | | | | | | | | | Make sure PlatformGraphicsContext::mCanvas is still around when we call restore(). Bug: 3071206 Change-Id: I5b3bc40448e1d891a47f214d18daf345d55d9284
* | Rename to_string() to jstringToWtfString() for greater claritySteve Block2010-10-151-1/+1
|/ | | | Change-Id: I8516c4f39a38e236d0bff38a91fe8657cfcf8ad4
* Fix PictureSet update crashNicolas Roard2010-10-142-0/+16
| | | | Change-Id: I5fec3f1ce421831b3fecae4030d63a29fe75fa1c
* Cleanup TiledPage class.Derek Sollenberger2010-10-145-68/+87
| | | | | | | | | | | The cleanup consists of: 1. renaming m_baseTextures to m_baseTiles 2. caching the inverse scale to speed up the draw calls 3. removing currentPictureMethod as it is available through GLWebViewState 4. adding comments to the public methods 5. some small source code optimizations Change-Id: I831500da335a3afac7232524b74e63436ea65efb
* Merge "Cleanup the TileSet class."Derek Sollenberger2010-10-148-71/+67
|\
| * Cleanup the TileSet class.Derek Sollenberger2010-10-148-71/+67
| | | | | | | | | | | | | | | | | | The cleanup consisted of three pieces: 1. rename the class to TileSet since a set implies multiple tiles. 2. removed unused variables and uncessary methods. 3. cleaned up coding style and added comments. Change-Id: I605fce367e4d1e8cb795f1e9bfab0ce0999dc7e3
* | Fix crash bug when calling WebView::clearView()Nicolas Roard2010-10-141-3/+5
|/ | | | | Bug:3097149 Change-Id: I280c0ca0e534d46570d758267c1e78c561a5b955
* GL rendering (without layers)Nicolas Roard2010-10-1320-43/+2349
| | | | | | This is a two-parts CL, Its counterpart is https://android-git.corp.google.com/g/#change,64863 Change-Id: I40fcf3b7b6d28b887b101219c973070aeefbb777
* Remove unnecessary mutex locks from texture sharing codeDerek Sollenberger2010-10-121-4/+0
| | | | | | | | | | | | The DoubleBufferedTexture currently uses a mutex to protect access to m_frontTexture on the producer functions. This mutex is not needed in the producerLock/producerRelease functions as they will always be called by the thread that sets m_frontTexture. Additionally, this data will be initialized before calls to those funtions as the thread must always call aquireContext() before calling these functions. Change-Id: I110ad357c5eed4c0f5501761174e0da4b872af5d http://b/3089605
* Add new API for plugin audio track latency.Derek Sollenberger2010-10-121-0/+2
| | | | | | | | | | This CL extends the existing udio API with a new function to measure the latency of a audio track. To preserve binary compatibility with the already released v0 API we have created a v1 extension. Change-Id: I656ac10470f2262bac7039aa45458d2100a37612 http://b/3088633
* Merge "Fixed browser crash when plugins remove themselves from the DOM."Derek Sollenberger2010-10-111-6/+0
|\
| * Fixed browser crash when plugins remove themselves from the DOM.Derek Sollenberger2010-10-111-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | If a plugin removes itself from the DOM and it is the only plugin of that type on the page then the browser will attempt to unload the plugin's shared library. This causes a problem since there is plugin code still on the stack. The solution is to post a message that removes the plugin's libary at a later time. This solution was disabled in the past due to an unknown issue, but was tested as working on both the Adobe plugin and a development sample plugin. Change-Id: If60394336790f833d6b9333424836cbd32dc31e7 http://b/3084460
* | Merge "style cleanup on GraphicsContextAndroid.cpp"Teng-Hui Zhu2010-10-111-459/+468
|\ \ | |/ |/|
| * style cleanup on GraphicsContextAndroid.cppTeng-Hui Zhu2010-10-081-459/+468
| | | | | | | | | | | | | | | | | | | | | | | | Reduce the style check error from 118 to 1. Mostly are one space for end of line comment, underscore in function name, NULL Vs 0, comparing with 0 etc... Only one function name android_gc2canvas still contain underscore and chaning that need to touch multiple files. That will be fixed when we come to clean up the whole directory. Change-Id: Ibcbc4d368452943825a4b3421315732eb03c292c http://b/3003023
* | Fix WebCore/WebKit layering violation.Ben Murdoch2010-10-083-5/+8
| | | | | | | | | | | | | | | | | | | | | | Move the call to WebViewCore::updateTextfield() to the PlatformBridge so that WebCore code does not depend on WebKit code to compile. In addition to being a layering violation, the inclusion of WebViewCore.h includes WebCoreJni.h, which in a future change causes LOG to get #undefined when using the chromium net stack. Change-Id: Id88d332624323e03ce82120ef55db200cbabe63b
* | Fix a WebCore/WebKit layering violationBen Murdoch2010-10-083-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | Move the call to WebViewCore::updateViewport() from HTMLBodyElement and HTMLMetaElement to the PlatformBridge so that WebCore code does not depend on WebKit code to compile. In addition to being a layering violation, the inclusion of WebViewCore.h includes WebCoreJni.h, which in a future change causes LOG to get #undefined when using the chromium net stack. Change-Id: I1a9fd0b545080c9c0d9d26a3e5eb3b986c3986eb
* | Remove dependency of WebCore ScreenAndroid on platform APISteve Block2010-10-082-31/+15
| | | | | | | | | | | | | | | | | | | | Note that this change forks two WebCore files, but both files are already forked and are unlikely to be changed upstream by non-Android contributors. All changes to both files will be upstreamed at a later date. Bug: 2439218 Change-Id: I1e56ee12cec17df38a1404ab06c8897c22f2fd19
* | Revert "Prohibit scrolling not initiated by the user."Leon Scroggins2010-10-072-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Bug:3067265 This reverts commit f116b073399a3c3f644d6e6aeb2521ef9d2c9e9b. Conflicts: WebCore/platform/android/PlatformBridge.h WebKit/android/WebCoreSupport/PlatformBridge.cpp Change-Id: I358ce936a8c6f99717b976cfa07e7fe26014760a
* | Merge WebKit at r68651 : Renamed variablesKristian Monsen2010-10-076-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed m_minPrefWidth and m_maxPrefWidth to m_minPreferredLogicalWidth and m_maxPreferredLogicalWidth in this CL: http://trac.webkit.org/changeset/68276/trunk/WebCore/rendering/RenderBox.h This changed containerWidth to containerLogicalWidth http://trac.webkit.org/changeset/68362/trunk/WebCore/rendering/RenderBox.cpp Also changed calcReplacedWidthUsing to computeReplacedWidthUsing here: http://trac.webkit.org/changeset/68239/trunk/WebCore/rendering/RenderBox.h Change-Id: I8eb912128aa5e09f55f4495671209cb8ca2ba3f0
* | Merge WebKit at r68651 : Use the Android version of release/retainPlatformWidgetKristian Monsen2010-10-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Empty declarations for these were added in the header file, probably safest to keep the Android ones around. In the Fix conflicts merge these were removed from Widget.cpp, so this should match the old behaviour. Webkit CL: http://trac.webkit.org/changeset/68054/trunk/WebCore/platform/Widget.h Change-Id: Ifdc0ad47816e03a7d424eb7130f2f7c1a61f7067
* | Merge WebKit at r68651 : Compile fix, add missing includeKristian Monsen2010-10-071-0/+1
| | | | | | | | | | | | | | Fix in a later revision of Webkit, this is a cherry-pick: http://trac.webkit.org/changeset/68780/trunk/WebCore/loader/PingLoader.cpp Change-Id: I95ecfd0de7ef494fbf0eb7413976e326b525a026
* | Merge WebKit at r68651 : Add ANDROID guardsKristian Monsen2010-10-071-0/+4
| | | | | | | | | | | | | | m_axObjectCache is not used for Android, so adding guards like in similar functions. Change-Id: I6179bb23fce275095b9521680282eb4ba8b3d29e
* | Merge Webkit at r68651 : Add guards for ENABLED(INSPECTOR)Kristian Monsen2010-10-071-0/+4
| | | | | | | | | | | | | | | | | | | | This has been fixed upstream in this CL (which this is a cherrry-pick of): http://trac.webkit.org/changeset/68763/trunk/WebCore/inspector/InspectorController.h And later removed upstream in this CL: http://trac.webkit.org/changeset/68767/trunk/WebCore/inspector/InspectorController.h Change-Id: I4c724f2f52a5a9db6dca6b58032b6a902aac74b5
* | Merge Webkit at r68651 : Fix conflicts.Kristian Monsen2010-10-0715-118/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ChromeClient.h: Conflict due to ANDROID_INSTALLABLE_WEB_APPS http://trac.webkit.org/changeset/68031/trunk/WebCore/page/ChromeClient.h CSSParser.cpp: Conflict due to ANDROID_INSTRUMENT http://trac.webkit.org/changeset/68521/trunk/WebCore/css/CSSParser.cpp Node.cpp: Conflict due to ANDROID_DOM_LOGGING http://trac.webkit.org/changeset/68541/trunk/WebCore/dom/Node.cpp npapi.h: Conflicts due to various #ifdef ANDROID http://trac.webkit.org/changeset/68390/trunk/WebCore/bridge/npapi.h PlatformTouchEvent.h: PlatformTouchEventAndroid.cpp: PlatformTouchPoint.h: Conflicts due to new BREWMP code next to changed Android code Initial webkit CL: http://trac.webkit.org/changeset/68499 Later fix after merge revision, so cherry-picked: http://trac.webkit.org/changeset/69034 RenderBox.cpp: Several changes, conflicts due to ANDROID_LAYOUT http://trac.webkit.org/changeset/68238#file2 http://trac.webkit.org/changeset/68239#file3 http://trac.webkit.org/changeset/68362/trunk/WebCore/rendering/RenderBox.cpp The correct resolution here is unclear. A closer investiagtion by somebdoy more familiar with the code is tracked with b/3071198 RenderBox.h: Conflicts due to ANDROID_LAYOUT http://trac.webkit.org/changeset/68417/trunk/WebCore/rendering/RenderBox.h RenderIFrame.cpp: Conflicts due to ANDROID_FLATTEN_IFRAME http://trac.webkit.org/changeset/68238/trunk/WebCore/rendering/RenderIFrame.cpp RenderTable.cpp: Conflicts due to ANDROID_LAYOUT http://trac.webkit.org/changeset/68427/trunk/WebCore/rendering/RenderTable.cpp RenderView.cpp: Conflicts due to ANDROID_LAYOUT http://trac.webkit.org/changeset/68436/trunk/WebCore/rendering/RenderView.cpp Settings.cpp: Settings.h: Conflicts due to ANDROID_PLUGINS and WEB_AUTOFILL http://trac.webkit.org/changeset/68166 Widget.cpp: http://trac.webkit.org/changeset/68054/trunk/WebCore/platform/Widget.cpp Change-Id: I156f537ae0483b89e4c6b9fce0e7b2f931f957a2
* | Merge Webkit at r68651 : Fix Makefiles.Kristian Monsen2010-10-075-20/+16
| | | | | | | | | | | | | | | | Two perl scripts now generate .cpp files as well as .h files: http://trac.webkit.org/changeset/68521/trunk/WebCore/css/makevalues.pl http://trac.webkit.org/changeset/65942/trunk/WebCore/css/makeprop.pl Change-Id: Ic820536494d259200a69e07711d8cf19d5654b31
* | Merge WebKit at r68651 : Initial merge by git.Kristian Monsen2010-10-07745-7025/+28686
| | | | | | | | Change-Id: I3d6bff59f17eedd6722723354f386fec9be8ad12
* | Implement supportsType in MediaPlayerPrivateAndroid.Shimeng (Simon) Wang2010-10-061-3/+1
|/ | | | | | | Use Java API to obtain this info. issue: 2816278 Change-Id: Ia525cc84f9a18ad2f9868d9f13d3671da527e5e0
* Don't include JavaScriptCore/config.h from WebCore/WebCorePrefix.hKristian Monsen2010-10-052-5/+6
| | | | | | | | | | | | | | | | This is a cherry-pick of the following upstream CL: https://bugs.webkit.org/show_bug.cgi?id=47179 This violates the rules at the top of the file, and means that it will be included before any other includes for all compilation units. We are now just including JavaScriptCore/config.h from WebCore/config.h so if you include one you get both. This created a compile error in V8Counters.cpp, which is also fixed Change-Id: I272247161877ddc680b3aab509bc413ab3445219
* Generate files correctlyKristian Monsen2010-10-051-6/+3
| | | | | | | | Instead of creating them at . and moving to the right place, just create them at the right place. This way any additional files created will be in the right place as well. Change-Id: I6102bbcee2b4bec3f780fdbed20ba15c9d1a6017
* b/3039749 resolving the conflicts for WebKit.Huahui Wu2010-10-044-5/+0
| | | | Change-Id: If67e444a050d2a96e7d076c4faee8a160e08d4d5
* Add AA to the border radiusTeng-Hui Zhu2010-10-041-14/+75
| | | | | | | In order to enable AA for the border radius, add an extra layer for drawing and then clearing by using AA paint. The reason why clipping can't show AA is that it is 1-bit clip. Change-Id: Ic9fa99915fb908e502dcb90cfe1428bb4d8e136b http://b/3003023
* Merge "Bug2811469 - wide space in RTL layout"claireho2010-10-011-9/+135
|\
| * Bug2811469 - wide space in RTL layoutclaireho2010-09-291-9/+135
| | | | | | | | | | | | | | 1. Fixed extra wide space in RTL pages. 2. Removed the tailing space in FontAndroid.cpp. Change-Id: I73b6cd7a7bed7a92929d3c4ef8af3b2c84020d0f
* | Fix the compiler error while disabling overflow scroll.Shimeng (Simon) Wang2010-09-301-0/+2
| | | | | | | | Change-Id: I4d74ac00a6d348ce00b551572da6ceb5f2793b1f
* | JSC build fixKristian Monsen2010-09-291-0/+1
| | | | | | | | | | | | | | Need by this webkit CL: http://trac.webkit.org/changeset/67898 Change-Id: Ic6180c845bf2d51036925e9329be6cb9a0cc0ab6
* | Merge WebKit at r67908: ResourceLoader now makes use of NetworkingContextSteve Block2010-09-292-15/+18
| | | | | | | | | | | | See http://trac.webkit.org/changeset/67291 Change-Id: I620cba25ea40451830b86df90631a2c88792ce16
* | Merge WebKit at r67908: Remove ↵Steve Block2010-09-291-5/+0
| | | | | | | | | | | | | | | | GraphicsLayer::compositingCoordinatesOrientation() See http://trac.webkit.org/changeset/67576 Change-Id: I2f212e6591b4d7c1a48cae5be9e8e4911d9c3a50
* | Merge WebKit at r67908: Remove call to ↵Steve Block2010-09-291-0/+8
| | | | | | | | | | | | | | | | SharedGraphicsContext3D::removeTexturesFor() See http://trac.webkit.org/changeset/67412 Change-Id: I327df5aa81770a4eab885933ac6339ae26aca62a
* | Merge WebKit at r67908: Fix MakefilesSteve Block2010-09-292-0/+2
| | | | | | | | Change-Id: I2ce222e3f946987d9d544df5f015e06a2e5c7f4d
* | Merge WebKit at r67908: Fix conflictsSteve Block2010-09-2918-212/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whitespace difference in config.h - http://trac.webkit.org/changeset/67323 - WebCore/config.h Conflict due to ANDROID_LAYOUT - http://trac.webkit.org/changeset/67882 - WebCore/css/CSSComputedStyleDeclaration.cpp Conflict due to ANDROID_INSTRUMENT - http://trac.webkit.org/changeset/67704 - WebCore/css/CSSParser.cpp Conflict due to ANDROID_CSS_RING - http://trac.webkit.org/changeset/67667 - WebCore/css/CSSParser.cpp - WebCore/css/CSSStyleSelector.cpp Conflict due to axObjectCache - http://trac.webkit.org/changeset/67292 - WebCore/dom/Document.cpp Conflict due to ANDROID_ACCEPT_CHANGES_TO_FOCUSED_TEXTFIELDS - http://trac.webkit.org/changeset/67903 - WebCore/html/HTMLInputElement.cpp Conflict due to ARCHIVE - http://trac.webkit.org/changeset/67198 - WebCore/loader/DocumentLoader.cpp - WebCore/loader/FrameLoader.cpp Conflict due to ARCHIVE - http://trac.webkit.org/changeset/67253 - WebCore/loader/FrameLoader.cpp Conflict due to actualWidth() vs width() - http://trac.webkit.org/changeset/67762 - WebCore/page/DOMWindow.cpp Conflict due to ANDROID_PLUGINS - http://trac.webkit.org/changeset/67890 - WebCore/page/Settings.cpp - WebCore/page/Settings.h Conflict due to Android MIME types - http://trac.webkit.org/changeset/67375 - WebCore/platform/MIMETypeRegistry.cpp Android fix in PluginView no longer needed after http://trac.webkit.org/changeset/67325 - WebCore/plugins/PluginView.cpp Conflict due to ANDROID_FLATTEN_IFRAME and ANDROID_FLATTEN_FRAMESET - http://trac.webkit.org/changeset/67660 - WebCore/rendering/RenderBlockLineLayout.cpp Conflict due to ANDROID_LAYOUT - http://trac.webkit.org/changeset/67660 - WebCore/rendering/RenderBox.h - WebCore/rendering/RenderTable.cpp Android fix in RenderTableCell no longer needed after http://trac.webkit.org/changeset/67862 - WebCore/rendering/RenderTableCell.cpp Conflict due to ANDROID_CSS_RING - http://trac.webkit.org/changeset/67889 and http://trac.webkit.org/changeset/67667 - WebCore/rendering/style/RenderStyle.h Change-Id: Ie36bd7de6d89a1f873c91984048f2507cabd864c fix conflicts Change-Id: I3acaba9492f6f39869e69fa24270cefbb74ba673
* | Merge WebKit at r67908: Initial merge by GitSteve Block2010-09-29664-10487/+24375
| | | | | | | | Change-Id: I43a553e7b3299b28cb6ee8aa035ed70fe342b972
* | Turn autofill on by default at compile time and make it a browser setting.Ben Murdoch2010-09-282-1/+11
|/ | | | | | | | | | | Make autofill a runtime option configured through the browser. Required a corresponding change in frameworks/base - https://android-git.corp.google.com/g/65573 and packages/apps/browser - https://android-git.corp.google.com/g/65579 Change-Id: I905b464a6338ff27b02f16d0b9a718154c3c98c1
* Merge "Bug: 2372180"Huahui Wu2010-09-274-6/+13
|\
| * Bug: 2372180Huahui Wu2010-09-274-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL adds support to pass multi-touch event from browser to webkit. PlatformTouchEvent.h and PlatformTouchEventAndroid.cpp: changed the android constructor to take multiple touch points. PlatformTouchPoint.h and PlatformTouchPointAndroid.cpp: changed the android constructor to take a touch point ID. WebViewCore.h and WebViewCore.cpp: 1. Updated handleTouchEvent(), HandleTouchEvent(), and jni interface to take multiple points. 2. Added support of action MotionEvent.ACTION_POINTER_DOWN & MotionEvent.ACTION_POINTER_UP. Change-Id: I79cffdba12a60ced9a571b4c1fd5b520a0fb6074
* | Double Buffered Texture Support for WebKit.Derek Sollenberger2010-09-276-11/+570
|/ | | | | | | | This CL adds support for the DoubleBufferedTexture class which can be used to pass textures between threads. Bug-Id: 3034088 Change-Id: Idf4a5d367c02eae0cedb08f2167b9af370173851
* Merge "Remove a superfluous comment from HTMLInputElement.cpp"Steve Block2010-09-221-1/+0
|\