- 21 Aug, 2015 40 commits
-
-
jsbell@chromium.org authored
After discussions w/ Moz and spec updates, modify the experimental (behind a flag) IDBObjectStore/IDBIndex getAll()/getAllKeys() methods to treat 0 the same as "not passed", and return as many results as possible. Also adds missing tests for IDBObjectStore.getAllKeys() and tweaks the tests to avoid the deprecated assert_object_equals() function. R=cmumford@chromium.org Review URL: https://codereview.chromium.org/1303983002 git-svn-id: svn://svn.chromium.org/blink/trunk@200999 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
jsbell@chromium.org authored
In web-platform-tests there's a move away from the generic (and fragile, buggy) assert_object_equals(). Upstream, the cache storage tests moved to dedicated assert_response_equals() (and friends); mirror that in Blink. R=jkarlin@chromium.org Review URL: https://codereview.chromium.org/1295633003 git-svn-id: svn://svn.chromium.org/blink/trunk@200998 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
yosin@chromium.org authored
Introduce {next,previous}PositionOf() as replacement of {next,previous}() member functions in PositionAlgorithm This patch introduces |{next,previous}PositionOf()| as replacement of |{next, previous}()| member function in |PositionAlgorithm| template class to simplify |PositionAlgorithm| class by isolating editing algorithm and representation of a position for improving code health. This patch also changes |PositionMoveType| as enum class and non-default parameter to clear intention of each call sites. Though, we may want to drop |CodePoint| movement. Following patch will move them to "EditingUtilities.{cpp,h}". BUG=518738 TEST=n/a; no behavior changes Review URL: https://codereview.chromium.org/1305963003 git-svn-id: svn://svn.chromium.org/blink/trunk@200997 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
yukishiino@chromium.org authored
BUG= Review URL: https://codereview.chromium.org/1309653002 git-svn-id: svn://svn.chromium.org/blink/trunk@200996 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
jww@chromium.org authored
This adds support to the fetch() API for the integrity attribute, both the setting of the attribute and the actual SRI enforcement. For the regular integrity attribute on elements, this leaves in place the checking of SRI in the Script element and Style element execution, rather than integrating it more fully into the Resource Loader because of technical complications. This may be worth doing in the future, but will require some significant redesign of how Resource objects are returned from the Memory Cache in ResourceFetcher::requestScript. BUG=502361 Review URL: https://codereview.chromium.org/1279163005 git-svn-id: svn://svn.chromium.org/blink/trunk@200995 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
rune@opera.com authored
This CL implements the shadow tree cascade order proposed in [1]. Previously, in Blink, specificity would win over scope origin, even if the scopes had an inner/outer scope relationship, and the order-of-appearance was governed by the CascadeOrder type. Also, !important rules did not apply in the reverse scope order, as the current spec says for inner/outer scopes, and the proposal in [1] says apply between all shadow scopes. What has been done is: 1. CascadeOrder is not used, as it represents order-of-appearance (Removal of CascadeOrder is not done here to make the CL smaller. Will be removed in a follow-up CL). 2. When collecting rules, sort after each scope instead of just after UA and Author since we had: UA important Author important Author UA and now we have (with A(n) appearing before A(n+1) in the tree-of-trees order): UA important Author scope A(n) important ... Author scope A(1) important Author scope A(1) ... Author scope A(n) UA The applyProperties code is hot, and I have made performance runs for the micro-benchmarks in Layout and CSS without consistent regressions. 3. Since the cascading order between scopes are just the inner/outer relationship in the composed tree (direction decided by !important), which is the same as the tree-of-trees order of the shadow trees, we can just traverse the DocumentOrderedList of scopes in the reverse order instead of doing calculation tricks for CascadeOrder values. Because of this, TreeBoundaryCrossingRules is now reduced to a DocumentOrderedList of scoping nodes, so the TreeBoundaryCrossingRules class is removed. [1] https://lists.w3.org/Archives/Public/www-style/2015Jun/0303.html BUG=452542, 455148, 487125 NOTRY=true Review URL: https://codereview.chromium.org/1298173004 git-svn-id: svn://svn.chromium.org/blink/trunk@200994 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
pfeldman@chromium.org authored
BUG=523403 NOTRY=true TBR=eae Review URL: https://codereview.chromium.org/1303363002 git-svn-id: svn://svn.chromium.org/blink/trunk@200993 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
rmcilroy@chromium.org authored
Initial implementation of the requestIdleCallback API based on the spec at https://w3c.github.io/requestidlecallback/. This API is behind a flag and is not enabled by default. BUG=514651 TBR=jochen@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/1119683003 git-svn-id: svn://svn.chromium.org/blink/trunk@200992 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
sergeyv@chromium.org authored
BUG=501896 NOTRY=true Review URL: https://codereview.chromium.org/1310433002 git-svn-id: svn://svn.chromium.org/blink/trunk@200991 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
vogelheim@chromium.org authored
This fixes a race condition where both the main thread and the V8 background parsing thread call fetchDataFromResourceBuffer. The current lock makes sure only one thread will fetch data from teh resourceBuffer at a time, and the queue they put it in is natively thread safe, but - if threads race in just the right way - the order might be reversed. Example: - thread 1 acquires lock, fetches data from resource buffer. - thread 1 gets interruped; new data arrives in the resource buffer. - thread 2 acquires lock, fetches data from resource buffer - thread 2 adds its chunks to the data queue - thread 1 adds its chunks to the data queue -> the chunks are now queued in the wrong order. BUG=510825 Review URL: https://codereview.chromium.org/1286883004 git-svn-id: svn://svn.chromium.org/blink/trunk@200990 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
servolk@chromium.org authored
Provided interface in ChunkDemuxer/WebSourceBuffer to allow blink to invoke "3.5.12 Coded Frame Eviction Algorithm" https://w3c.github.io/media-source/#sourcebuffer-coded-frame-eviction This allows us to detect when buffer is full, even after GC and throw QuotaExceededErr exception as MSE spec prescribes. See step #6 in section 3.5.4 at https://w3c.github.io/media-source/#sourcebuffer-prepare-append Related Chromium CL: https://codereview.chromium.org/1008463002/ BUG=421694 Review URL: https://codereview.chromium.org/1013923002 git-svn-id: svn://svn.chromium.org/blink/trunk@200989 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tasak@google.com authored
Added STATIC_ONLY, STACK_ALLOCATED, DISALLOW_ALLOCATION, or ALLOW_ONLY_INLINE_ALLOCATION instead of WTF_MAKE_FAST_ALLOCATED(_WILL_BE_REMOVED) if possible. BUG=523249 Review URL: https://codereview.chromium.org/1306003002 git-svn-id: svn://svn.chromium.org/blink/trunk@200988 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
fs@opera.com authored
* Sync step documentation ('line position' -> 'line' and similar.) * Remove remnants of 'best position' and re-number steps. * Implement new cue dodging logic. BUG=301580 Review URL: https://codereview.chromium.org/1306833003 git-svn-id: svn://svn.chromium.org/blink/trunk@200987 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
jww@chromium.org authored
This disallows getUserMedia() from being used on insecure origins. Adds a console warning message that the API call has failed because of this. BUG=520765 Review URL: https://codereview.chromium.org/1284193003 git-svn-id: svn://svn.chromium.org/blink/trunk@200986 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
fs@opera.com authored
Review URL: https://codereview.chromium.org/1304183003 git-svn-id: svn://svn.chromium.org/blink/trunk@200985 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
haraken@chromium.org authored
We normally use RELEASE_ASSERT for checking !isScriptForbbiden() because executing a script in places where script execution is not allowed can lead to security issues. Review URL: https://codereview.chromium.org/1304103002 git-svn-id: svn://svn.chromium.org/blink/trunk@200984 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ojan@chromium.org authored
This bot is new and has a lot of flakiness that needs digging into. These were generated from webkit-patch print-flaky-tests. BUG=521764 TBR=enne@chromium.org Review URL: https://codereview.chromium.org/1302373002 . git-svn-id: svn://svn.chromium.org/blink/trunk@200983 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tasak@google.com authored
Added STATIC_ONLY, STACK_ALLOCATED, DISALLOW_ALLOCATION, or ALLOW_ONLY_INLINE_ALLOCATION instead of WTF_MAKE_FAST_ALLOCATED(_WILL_BE_REMOVED) if possible. BUG=523249 Review URL: https://codereview.chromium.org/1304623002 git-svn-id: svn://svn.chromium.org/blink/trunk@200982 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
yosin@chromium.org authored
This patch moves |inRenderedText()| to "VisibleUnits.cpp" from "Position.cpp" to simplify "Position.cpp" for improving code health since it is used only in "VisibleUnits.cpp" BUG=518738 TEST=n/a; no behavior changes Review URL: https://codereview.chromium.org/1309673002 git-svn-id: svn://svn.chromium.org/blink/trunk@200981 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ksakamoto@chromium.org authored
This fixes a regression from Blink r199364 where credentials are not sent for same-origin webfont requests. This patch basically does the same thing as HTMLImportsController::load(); set AllowStoredCredentials flag only when the request is same-origin. BUG=516192 TEST=http/tests/webfont/same-origin-credentials.html Review URL: https://codereview.chromium.org/1267023004 git-svn-id: svn://svn.chromium.org/blink/trunk@200980 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tasak@google.com authored
Added STATIC_ONLY, STACK_ALLOCATED, DISALLOW_ALLOCATION, or ALLOW_ONLY_INLINE_ALLOCATION instead of WTF_MAKE_FAST_ALLOCATED(_WILL_BE_REMOVED) if possible. BUG=523249 Review URL: https://codereview.chromium.org/1304043002 git-svn-id: svn://svn.chromium.org/blink/trunk@200979 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
yoichio@chromium.org authored
Revert of [Editing][Codehealth] Replace Position::uptream/downstream to mostBackward/ForwardCaretPosition. (patchset #1 id:1 of https://codereview.chromium.org/1306743002/ ) Reason for revert: This patch misused each other. See: https://codereview.chromium.org/1310433004/ Original issue's description: > [Editing][Codehealth] Replace Position::uptream/downstream to > mostBackward/ForwardCaretPosition > > Position::upstream calls just VisibleUnit.cpp::mostForwardCaretPosition and also > downstream: > https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/c > ore/editing/Position.cpp&l=484&cl=GROK > > This CL replaces it. > We will replace all upstream/downstream and remove them. > > BUG=518738 > > Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200977 TBR=yosin@chromium.org,tkent@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=518738 Review URL: https://codereview.chromium.org/1304133002 git-svn-id: svn://svn.chromium.org/blink/trunk@200978 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
yoichio@chromium.org authored
mostBackward/ForwardCaretPosition Position::upstream calls just VisibleUnit.cpp::mostForwardCaretPosition and also downstream: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/c ore/editing/Position.cpp&l=484&cl=GROK This CL replaces it. We will replace all upstream/downstream and remove them. BUG=518738 Review URL: https://codereview.chromium.org/1306743002 git-svn-id: svn://svn.chromium.org/blink/trunk@200977 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
yoichio@chromium.org authored
mostForwardCaretPosition returns a most backward position and mostBakwardCaretPosition returns a most forward position. This is opposite meaning each other. This CL fixes that. BUG=518738 Review URL: https://codereview.chromium.org/1310433004 git-svn-id: svn://svn.chromium.org/blink/trunk@200976 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ssid@chromium.org authored
The WTF_PRETTY_FUNCTION takes the name of the class using the typename given by the compiler. This gives the base class name for all sub-classes. To make the dump name unique the, gcInfoIndex is appended to the object name. BUG=521490 Review URL: https://codereview.chromium.org/1303693005 git-svn-id: svn://svn.chromium.org/blink/trunk@200975 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
hiroshige@chromium.org authored
This is partial revert of https://codereview.chromium.org/1060033002. This CL unships Request.context because it was removed from the spec: https://github.com/whatwg/fetch/issues/93 This CL - removes Response.context from Request.idl, and - updated/removed related Layout tests. Underlying implementation is left unchanged to be reused for Response.type. BUG=515786 Review URL: https://codereview.chromium.org/1292503002 git-svn-id: svn://svn.chromium.org/blink/trunk@200974 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
paulirish@chromium.org authored
Patch by Jan Olaf Krems https://gist.github.com/jkrems/5f08ab53c05d96356a1e BUG=523124 Review URL: https://codereview.chromium.org/1303073002 git-svn-id: svn://svn.chromium.org/blink/trunk@200973 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
yutak@chromium.org authored
Fixes a raw pointer in MainThreadTaskRunner. BUG=509911 R=haraken@chromium.org, keishi@chromium.org, oilpan-reviews@chromium.org Review URL: https://codereview.chromium.org/1296243004 git-svn-id: svn://svn.chromium.org/blink/trunk@200972 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
yosin@chromium.org authored
This patch moves |isVisuallyEquivalentCandidate()| to "VisibleUnits.{cpp,h} from "Position.{cpp,h}" to consolidate |InlineBox| dependency to "VisibleUnits.cpp" for ease of working them later. This patch also gets rid of unused include directives from "Position.cpp". BUG=518738 TEST=n/a; no behavior changes Review URL: https://codereview.chromium.org/1304063002 git-svn-id: svn://svn.chromium.org/blink/trunk@200971 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
yosin@chromium.org authored
This patch moves |computeInlineBoxPosition()| to "VisibleUnits.{cpp,h} from "Position.{cpp,h}" and "VisiblePosition.{cpp,h}" to consolidate |InlineBox| dependency to "VisibleUnits.cpp" for ease of working them later. BUG=518738 TEST=n/a; no behavior changes Review URL: https://codereview.chromium.org/1303173002 git-svn-id: svn://svn.chromium.org/blink/trunk@200970 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
sigbjornf@opera.com authored
R=haraken BUG=340522 Review URL: https://codereview.chromium.org/1297383003 git-svn-id: svn://svn.chromium.org/blink/trunk@200969 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tkent@chromium.org authored
They don't work until we switch to wptserve because they have links to /html/resources/common.js. BUG=490511 TBR=kojii@chromium.org Review URL: https://codereview.chromium.org/1305983002 git-svn-id: svn://svn.chromium.org/blink/trunk@200968 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
alph@chromium.org authored
BUG=523051 Review URL: https://codereview.chromium.org/1309603002 git-svn-id: svn://svn.chromium.org/blink/trunk@200967 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
rijubrata.bhaumik@intel.com authored
Add IDL for Navigator.Nfc and Nfc. Add the supporting .h|cpp files. Add simple Layout tests. Add nfc in webexposed layout test. Intent to Implement: https://mail.google.com/mail/u/1/#label/blink-dev/14f261c80935592e BUG=520391 Review URL: https://codereview.chromium.org/1291663004 git-svn-id: svn://svn.chromium.org/blink/trunk@200966 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
nainar@chromium.org authored
cssFloat does not show up as an enumerated property of CSSStyleDeclaration even though it does evaluate to a value. FF and IE both treat cssFloat as an enumerable property of CSSStyleDeclaration BUG=492999 Review URL: https://codereview.chromium.org/1288623005 git-svn-id: svn://svn.chromium.org/blink/trunk@200965 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
sigbjornf@opera.com authored
Consequently, update its IDL attribute to [GarbageCollected] and adjust the return type of its constructor. R=haraken BUG=522949 Review URL: https://codereview.chromium.org/1309463002 git-svn-id: svn://svn.chromium.org/blink/trunk@200964 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
sigbjornf@opera.com authored
For the v8 callback objects that PromiseTrackers create, insist on using a WeakPersistent<> back reference to the PromiseTracker when Oilpan is enabled. R=haraken BUG=340522 Review URL: https://codereview.chromium.org/1301253002 git-svn-id: svn://svn.chromium.org/blink/trunk@200963 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
sigbjornf@opera.com authored
Fully transition MediaError, MediaKeyError and TimeRanges to Oilpan. R=haraken BUG=340522 Review URL: https://codereview.chromium.org/1306613002 git-svn-id: svn://svn.chromium.org/blink/trunk@200962 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
binji@chromium.org authored
Also, add a RELEASE_ASSERT when creating an ArrayBuffer from an ArrayBufferContents that the backing store is non-NULL. BUG=522128 Review URL: https://codereview.chromium.org/1302193002 git-svn-id: svn://svn.chromium.org/blink/trunk@200961 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tyoshino@chromium.org authored
BUG=none R=ksakamoto Review URL: https://codereview.chromium.org/1300493004 git-svn-id: svn://svn.chromium.org/blink/trunk@200960 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-