- 27 Jun, 2014 40 commits
-
-
sigbjornf@opera.com authored
Add missing & now-needed V8ValueTraits<> specialization for HeapVector. R=haraken@chromium.org BUG=369451 Review URL: https://codereview.chromium.org/350293004 git-svn-id: svn://svn.chromium.org/blink/trunk@177079 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
vsevik@chromium.org authored
R=pfeldman, caseq Review URL: https://codereview.chromium.org/354993003 git-svn-id: svn://svn.chromium.org/blink/trunk@177078 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
bashi@chromium.org authored
Using local variable for isolate in attribute_getter will add complexity and won't pay for it. BUG=345503 Review URL: https://codereview.chromium.org/359703002 git-svn-id: svn://svn.chromium.org/blink/trunk@177077 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
dgozman@chromium.org authored
BUG=388185 Review URL: https://codereview.chromium.org/342683008 git-svn-id: svn://svn.chromium.org/blink/trunk@177076 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eustas@chromium.org authored
BUG= Review URL: https://codereview.chromium.org/352983004 git-svn-id: svn://svn.chromium.org/blink/trunk@177075 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
kouhei@chromium.org authored
SVG{Length,Point,Number} have very similar implementations of adjustFromToListValues. This CL dedupes it by moving it to SVGListPropertyHelper. BUG=378670 Review URL: https://codereview.chromium.org/358083002 git-svn-id: svn://svn.chromium.org/blink/trunk@177074 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
yosin@chromium.org authored
This patch removes redundant functions Editor::indent() and outdent(), which were used for special handling of WebFrame::executeCommand. Editor::indent/outdent are identical to executeIndent/executeOutend. BUG=n/a TEST=n/a; no behavior changes Review URL: https://codereview.chromium.org/356173002 git-svn-id: svn://svn.chromium.org/blink/trunk@177073 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
bashi@chromium.org authored
According to haraken's comment on [1], we can always use info.Holder() instead of calling findInstanceInPrototypeChain(). Removing one FIXME. [1] https://codereview.chromium.org/140663012 BUG=345503 Review URL: https://codereview.chromium.org/347773003 git-svn-id: svn://svn.chromium.org/blink/trunk@177072 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
dstockwell@chromium.org authored
This ensure that animations started by element.animate function the same way as regular CSS Animations -- they will wait for notification of a start time from the compositor. BUG=389396 Review URL: https://codereview.chromium.org/354123002 git-svn-id: svn://svn.chromium.org/blink/trunk@177071 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
mkwst@chromium.org authored
This patch ensures that we check both the current context and the top-level browsing context when evaluating whether or not an insecure websocket connection should be blocked as mixed content. BUG=389040 Review URL: https://codereview.chromium.org/351163002 git-svn-id: svn://svn.chromium.org/blink/trunk@177070 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
lushnikov@chromium.org authored
This patch uses text shadow for label text instead of black half-opaque background color. BUG=382996 Review URL: https://codereview.chromium.org/351263002 git-svn-id: svn://svn.chromium.org/blink/trunk@177069 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
keishi@chromium.org authored
BUG=328814 Review URL: https://codereview.chromium.org/349123002 git-svn-id: svn://svn.chromium.org/blink/trunk@177068 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tkent@chromium.org authored
BUG=389042 TBR=kouhei@chromium.org Review URL: https://codereview.chromium.org/356993003 git-svn-id: svn://svn.chromium.org/blink/trunk@177067 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ch.dumez@samsung.com authored
Add move constructor and assignment operator to RefPtr class. As a result, we can now use the implicitly defined move constructor and assignment operator for Atomic String. Also, other classes with RefPtr data members like CString now get a better default move constructor and assignment operator. The release binary is ~21Kb smaller, there is no diff on the generated asm for CString and AtomicString. However, there is a small diff for WTFString.o: http://pastebin.com/RTzX23JV The generated assembly for "CString WTF::String::latin1() const" and "CString WTF::String::ascii() const" is slightly smaller, likely due to CString's improved move copy constructor as these methods return CStrings. Review URL: https://codereview.chromium.org/354023003 git-svn-id: svn://svn.chromium.org/blink/trunk@177066 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eseidel@chromium.org authored
I was very confused by the ScriptLoader code which called CSP::allowScriptNonce and the corresponding variable which was called isValidScriptNonce. I searched around for nonce functions and found that they only checked the nonce (not all policies) and I originally thought this was an error! However after further investigation I found that allowScriptNonce actually checks all active CSPs and returns true only if they all pass, thus making the following line (which disables further CSP checks on the load) OK. I renamed these allowScriptNonce and allowStyleNonce functions to have a 'With' in their name and added a comment in the header explaining their behavior. While making this change, I also reduced the verbosity of several repeated uses of the string ContentSecurityPolicy. I think most blink hackers would be able to look up that CSP refers to ContentSecurityPolicy. I removed several redundant calls to Document::contentSecurityPolicy (again just caused the lines to be needlessly verbose). Finally I made ScriptLoader::executeScript use the preferred early-return pattern instead of a long indented block for the !frame case. I suspect that the !frame check can actually be moved much earlier in the function or even turned into an ASSERT. This is still my long yack-shave to actually make the preloader correct so I can fix the bugs which my patch to make the HTML parser yield more agressively (and thus not starve the preloader) possible to land: https://codereview.chromium.org/258013009/ BUG=356292 Review URL: https://codereview.chromium.org/353873003 git-svn-id: svn://svn.chromium.org/blink/trunk@177065 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
timloh@chromium.org authored
Currently CSSValueList::item does a bounds check and will return null if the given index is out of range. This patch makes the interface slightly more sane by removing the check, which is currently otherwise skipped by calling itemWithoutBoundsCheck. Note that the vector access will perform a bounds check (with release assert) anyway. The only caller where the bounds check behaviour is useful is for the IDL binding so a separate function itemWithBoundsCheck is created for this (already tested by value-list-out-of-bounds-crash.html). Review URL: https://codereview.chromium.org/333163004 git-svn-id: svn://svn.chromium.org/blink/trunk@177064 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
philipj@opera.com authored
Review URL: https://codereview.chromium.org/359473008 git-svn-id: svn://svn.chromium.org/blink/trunk@177063 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tasak@google.com authored
- Custom bindings for modules are moved into bindings/modules/v8/custom, and - Custom bindings for core are moved into bindings/core/v8/custom. - Update gn and gypi files. BUG=358074 Review URL: https://codereview.chromium.org/331373002 git-svn-id: svn://svn.chromium.org/blink/trunk@177062 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
philipj@opera.com authored
This replaces flags + FullScreenCheckType, for a few reasons: 1. An UnprefixedRequest will be added, for which neither ALLOW_KEYBOARD_INPUT nor FullScreenCheckType is possible. Not all previously possible combinations are possible, either. 2. An enum is clearer than flags at the call site. In particular, 0 was passed to HTMLMediaElement::enterFullscreen() which would disallow keyboard input, which was not obivous and possibly not even the original intention. The behavior was preserved but should probably be changed to allow keyboard input in a future patch. 3. LEGACY_MOZILLA_REQUEST as a public part of Element.h is weird. BUG=383813 Review URL: https://codereview.chromium.org/356933002 git-svn-id: svn://svn.chromium.org/blink/trunk@177061 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tasak@google.com authored
BUG=369451 TEST=no new tests because of just refactoring. Review URL: https://codereview.chromium.org/350863002 git-svn-id: svn://svn.chromium.org/blink/trunk@177060 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ed@opera.com authored
Add another test for empty (but rendered) paths. BUG=388676 Review URL: https://codereview.chromium.org/357943002 git-svn-id: svn://svn.chromium.org/blink/trunk@177059 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
alph@chromium.org authored
Review URL: https://codereview.chromium.org/352603003 git-svn-id: svn://svn.chromium.org/blink/trunk@177058 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
sergeyv@chromium.org authored
BUG= Review URL: https://codereview.chromium.org/350153004 git-svn-id: svn://svn.chromium.org/blink/trunk@177057 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
malch@chromium.org authored
Review URL: https://codereview.chromium.org/355033003 Review URL: https://codereview.chromium.org/355033003 git-svn-id: svn://svn.chromium.org/blink/trunk@177056 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
chrishtr@chromium.org authored
Calling them is basically a layering violation, so it should not be encouraged. Also made one method of RenderObject private that is already used as such, and updated RenderLayerClipper::clippingRootForPainting to use an already-available method on RenderLayer that is also used by RenderLayer::enclosingCompositingLayerForPaintInvalidation. This method does almost the same thing as RenderLayerClipper::clippingRootForPainting is intended to do; the latter just throws in an if(transform()). BUG=384520 Review URL: https://codereview.chromium.org/342203004 git-svn-id: svn://svn.chromium.org/blink/trunk@177055 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
falken@chromium.org authored
Unregister doesn't affect existing control over a document, but prevents the worker from controlling on future document loads. We already implement this behavior but no layout test existed yet. BUG=388095 Review URL: https://codereview.chromium.org/358553003 git-svn-id: svn://svn.chromium.org/blink/trunk@177054 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
abarth@chromium.org authored
Rather than reallocating the players vector, we can just reserve exactly the correct capacity ahead of time. I didn't see these mallocs on a profile, but this code is executed every frame during composited animations. R=dstockwell@chromium.org Review URL: https://codereview.chromium.org/353083002 git-svn-id: svn://svn.chromium.org/blink/trunk@177053 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
haraken@chromium.org authored
This CL changes LoadableTextTrack::m_trackElement from a WeakMember to a Member. In non-oilpan, LoadableTextTrack::m_trackElement is implemented as a weak pointer, but it's just because there is no way in non-oilpan to make it a strong pointer without creating a cycle. Ideally LoadableTextTrack::m_trackElement should be implemented as a strong pointer. This is possible in oilpan, and this CL makes the change. BUG=340522 Review URL: https://codereview.chromium.org/351563005 git-svn-id: svn://svn.chromium.org/blink/trunk@177052 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
dgozman@chromium.org authored
BUG=387457 Review URL: https://codereview.chromium.org/345423004 git-svn-id: svn://svn.chromium.org/blink/trunk@177051 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
lushnikov@chromium.org authored
This patch adds functionality to proactively add "px" suffix if editing happens in certain CSS properties. List of properties where only distance of length values are allowed is taken from http://www.w3.org/TR/CSS21/propidx.html BUG=387884 Review URL: https://codereview.chromium.org/343343003 git-svn-id: svn://svn.chromium.org/blink/trunk@177050 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tkent@chromium.org authored
There are no callsites in Chromium. This function is unsafe because it ignores namespace URI. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176895 Review URL: https://codereview.chromium.org/354763002 git-svn-id: svn://svn.chromium.org/blink/trunk@177049 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
pdr@chromium.org authored
This patch updates the two remaining tests from the old text autosizer for the new fast text autosizer. cluster-list-item.html has been modified to not show the list bullets and a comment has been added about why. oscillation-javascript-fontsize-change.html has been updated to not be a shrink-wrapped div. This changes the test significantly but I think the test coverage may still be worth it. BUG= Review URL: https://codereview.chromium.org/356133003 git-svn-id: svn://svn.chromium.org/blink/trunk@177047 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
dpranke@chromium.org authored
This switches the default on Win 7 to use the native Win32 version of Apache 2.2 instead of LigHTTPd. In theory Apache will substantially more stable and also probably faster. I am hoping that this fixes the situation in bug 378444 where the server just doesn't work on some runs as well. We also match more of the test expectations on other platforms. If this change sticks and does improve flakiness, we'll try switching XP as well in a later change. This change also deletes all of the FlakyTest entries for http tests on Win7, so that we can better get a real sense of the flakiness. R=ojan@chromium.org BUG=378444, 30536 Review URL: https://codereview.chromium.org/327423008 git-svn-id: svn://svn.chromium.org/blink/trunk@177046 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
philipj@opera.com authored
This isolates ExemptIFrameAllowFullScreenRequirement to a single call site and makes the code more readable. R=acolwell@chromium.org Review URL: https://codereview.chromium.org/339903005 git-svn-id: svn://svn.chromium.org/blink/trunk@177045 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eseidel@chromium.org authored
Turns out we're not really ready to do this. The preloader has lots of bugs at least in the re-use-existing-preload logic. Yes, we should fix these bugs. Yes, making all tokens go through the preloader would force us to fix these bugs. But until we do, it seems better to sweep them back under the rug (and just have flakiness in the wild) rather than making preloader bugs completely unavoidable by forcing every token through it. This is a partial revert of: https://codereview.chromium.org/302063002/ BUG=356292,388308,389226 Review URL: https://codereview.chromium.org/359623004 git-svn-id: svn://svn.chromium.org/blink/trunk@177044 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
kouhei@chromium.org authored
This patch adds another round of GC to make sure Document is destroyed after |WorkerMessagingProxy::workerObjectDestroyed|. BUG=389042 Review URL: https://codereview.chromium.org/350013003 git-svn-id: svn://svn.chromium.org/blink/trunk@177043 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
jbroman@chromium.org authored
This class is fairly simple, but it's worth taking the rare opportunity to add a unit test to Blink. Review URL: https://codereview.chromium.org/343303003 git-svn-id: svn://svn.chromium.org/blink/trunk@177042 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ch.dumez@samsung.com authored
Move attributes-related methods from ElementData to AttributeCollection. Now that we have a dedicated class for Element attributes, it seems odd for the attributes-related API to be in Element / ElementData. This CL does not change the Element API for attributes so that the patch stays small. However, the idea would be to later move callers away from the attributes API on Element and instead call Element::attributes() and then interact directly with the returned AttributeCollection object. Using AttributeCollection directly has the benefit of avoiding redundant calls to ElementData::isUnique() and the caller can store AttributeCollection object in a variable and then any later interaction with this object won't require checking if ElementData is unique or not. R=esprehn@chromium.org, adamk@chromium.org Review URL: https://codereview.chromium.org/354023008 git-svn-id: svn://svn.chromium.org/blink/trunk@177041 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
kouhei@chromium.org authored
Its implementation is already removed from chromium in r279633. BUG=386888 Review URL: https://codereview.chromium.org/354073003 git-svn-id: svn://svn.chromium.org/blink/trunk@177040 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
kouhei@chromium.org authored
No change in logic, but rename and move. I used different naming convensions based on suggestions by fs@opera.com : "referencingElements" is renamed "outgoingReferences", and "referencedElements" is renamed "incomingReferences". - |SVGDocumentExtensions::setOfElementsReferencingTarget| moved to |SVGElement::setOfIncomingReferences| - |SVGDocumentExtensions::addElementReferencingTarget| moved to |SVGElement::addOutgoingReferenceTo| - |SVGDocumentExtensions::removeAllTargetReferencesForElement| moved to |SVGElement::removeAllOutgoingReferences| - |SVGDocumentExtensions::rebuildAllElementReferencesForTarget| moved to |SVGElement::rebuildAllIncomingReferences| - |SVGDocumentExtensions::removeAllElementReferencesForTarget| moved to |SVGElement::removeAllIncomingReferences| Changes to files SVG\w+Element.cpp made by a sed script: s/document()\.accessSVGExtensions()\.addElementReferencingTarget(this, \([a-Z()\*]\+\))/addOutgoingReferenceTo(\1)/g s/document()\.accessSVGExtensions()\.removeAllTargetReferencesForElement(this)/removeAllOutgoingReferences()/g s/document()\.accessSVGExtensions()\.setOfElementsReferencingTarget(this)/setOfIncomingReferences()/g BUG=378670 Review URL: https://codereview.chromium.org/344883007 git-svn-id: svn://svn.chromium.org/blink/trunk@177039 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-