- 29 Jul, 2014 23 commits
-
-
harpreet.sk@samsung.com authored
Children of flexbox with flex-direction: column/column-reverse shrinked their height after applying the overflow: scroll style. Children shows an incorrect height. The difference in height coming is equal to scrollbarLogicalHeight. This bug is occuring because we are not taking into account the scrollbar height while computing the mainAxisExtentForChild. This patch fixes this bug by adding scrollbarLogicalHeight while calculating mainAxisExtentForChild. BUG=364977 Review URL: https://codereview.chromium.org/417153003 git-svn-id: svn://svn.chromium.org/blink/trunk@179095 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
wangxianzhu@chromium.org authored
http://src.chromium.org/viewvc/blink?view=revision&revision=179076 BUG=394619 TBR=wangxianzhu@chromium.org Review URL: https://codereview.chromium.org/422843006 git-svn-id: svn://svn.chromium.org/blink/trunk@179094 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ch.dumez@samsung.com authored
Cast highestEnclosingNodeOfType() return value to tighter type to increase code readability. This CL also renames the type checking functions passed to highestEnclosingNodeOfType() to make it clear what type of Node/Element is returned. R=leviw@chromium.org Review URL: https://codereview.chromium.org/417113011 git-svn-id: svn://svn.chromium.org/blink/trunk@179093 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
haraken@chromium.org authored
This is a simple refactoring. We should use enum instead of '1 /* on prototype */' and '0 /* on instance */'. There is no change in behavior. Review URL: https://codereview.chromium.org/425853006 git-svn-id: svn://svn.chromium.org/blink/trunk@179091 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
jzern@chromium.org authored
BUG=374343 Review URL: https://codereview.chromium.org/413403010 git-svn-id: svn://svn.chromium.org/blink/trunk@179090 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
hongbo.min@intel.com authored
removed and also release the reference to DrawingBuffer, so that make sure the DrawingBuffer has a chance to be destroyed. BUG=390960 Review URL: https://codereview.chromium.org/415123002 git-svn-id: svn://svn.chromium.org/blink/trunk@179089 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
kouhei@chromium.org authored
Revert of Fix SharedWorker leak when script load has failed. (https://codereview.chromium.org/424653002/) Reason for revert: May cause crash Original issue's description: > Fix SharedWorker leak when script load has failed. > > When SharedWorker script load has failed and the |WebSharedWorkerImpl| > was explicit told to terminate, the |WebSharedWorkerImpl| instance > was never deleted. > > This CL fixes the issue by invoking "delete this" when a worker thread > instance does not exist in |stopWorkerThread()|. > > TEST=fast/workers/worker-crash-with-invalid-location.html doesn't leak when --enable-leak-detection > BUG=364390 > > Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179011 TBR=falken@chromium.org,tkent@chromium.org NOTREECHECKS=true NOTRY=true BUG=364390 Review URL: https://codereview.chromium.org/424923002 git-svn-id: svn://svn.chromium.org/blink/trunk@179088 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
haraken@chromium.org authored
- Make SelectorCheckerContext STACK_ALLOCATED. - Make FocusCandidate STACK_ALLOCATED. - Make TreeBoundaryCrossingRuleSetMap a hash map from Member<Node> to Member<CSSStyleSheetRuleSubSet>. This hash map doesn't need to be weak. BUG=340522 Review URL: https://codereview.chromium.org/423953003 git-svn-id: svn://svn.chromium.org/blink/trunk@179087 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
haraken@chromium.org authored
- Make StyleResolver's StyleSharingList a HeapDeque of Member<Element>s. - Make CSSFontFaceSrcValue::m_svgFontFaceElement a Member<Element>. - Add a FIXME to make ScriptLoader::m_element to a Member<Element>. Given that ResourceClient is going to be moved to the heap soon, it would be better to just wait for it rather than making it a Persistent<Element>. BUG=340522 Review URL: https://codereview.chromium.org/423013002 git-svn-id: svn://svn.chromium.org/blink/trunk@179086 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
haraken@chromium.org authored
r174506 replaced toV8Context() with v8::Object::CreationContext(), and it caused 16% regression in dromaeo.jslibeventjquery. This is because v8::Object::CreationContext() is slow. This CL reverts the change. BUG=383926 Review URL: https://codereview.chromium.org/429433002 git-svn-id: svn://svn.chromium.org/blink/trunk@179085 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
wangxianzhu@chromium.org authored
http://src.chromium.org/viewvc/blink?view=revision&revision=179059 BUG=392794 TBR=wangxianzhu@chromium.org Review URL: https://codereview.chromium.org/427693006 git-svn-id: svn://svn.chromium.org/blink/trunk@179084 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
sunil.ratnu@samsung.com authored
This constructor has no references to it. Hence, removing it. BUG=None Review URL: https://codereview.chromium.org/426573004 git-svn-id: svn://svn.chromium.org/blink/trunk@179083 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
dw.im@samsung.com authored
CSS3 Text spec about text-align-last has been modified as the property only can affect to the last line when test-align is justify. http://www.w3.org/TR/css-text-3/#text-align-last-property BUG=248839 Review URL: https://codereview.chromium.org/59753002 git-svn-id: svn://svn.chromium.org/blink/trunk@179082 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ch.dumez@samsung.com authored
Move Node::enclosingBlockFlowElement() / inSameContainingBlockFlowElement() to htmlediting.h as this is only needed for editing. R=leviw@chromium.org, yosin@chromium.org Review URL: https://codereview.chromium.org/421293004 git-svn-id: svn://svn.chromium.org/blink/trunk@179081 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
keishi@chromium.org authored
BUG=340522 Review URL: https://codereview.chromium.org/417953002 git-svn-id: svn://svn.chromium.org/blink/trunk@179080 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
haraken@chromium.org authored
This CL moves SelectorFilter::ParentStackFrame from a private section to a public section to use a WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS macro. BUG=340522 Review URL: https://codereview.chromium.org/422143005 git-svn-id: svn://svn.chromium.org/blink/trunk@179079 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
jchaffraix@chromium.org authored
Since the issue was opened, the validity of removing RenderObject::positionFromPaintInvalidationContainer was questioned and it was determined that it's probably not such a good idea anyway. BUG=368416 Review URL: https://codereview.chromium.org/423943002 git-svn-id: svn://svn.chromium.org/blink/trunk@179078 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
dpranke@chromium.org authored
During error recovery after failing to start a server, there might actually not be an error log where we think there should be one. TBR=eseidel@chromium.org BUG=378444 Review URL: https://codereview.chromium.org/421413002 git-svn-id: svn://svn.chromium.org/blink/trunk@179077 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
wangxianzhu@chromium.org authored
The optimization prunes SVG subtree paint invalidation walking if the container's transform changed. However, the transform changed flag is only updated during layout causing: - If multiple layouts before an invalidation, later layouts may clear the flag set by previous layout; - For paint-only invalidation (after we use unified invalidation) the flag may remain uncleared if there is no layout causing incorrect pruning of tree walking. SvgCubics doesn't show visible performance change with this patch. BUG=394619 Review URL: https://codereview.chromium.org/412083003 git-svn-id: svn://svn.chromium.org/blink/trunk@179076 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
michaelpg@chromium.org authored
This is the first step in switching to the mocha testing framework. We'll use the Chai assertion library, which provides should-style, expect-style, and assert-style assertions. We should avoid 'should', since it modifies Object.prototype. 'expect' is more readable and flexible than 'assert', although the (optional) chaining keywords can make it overly verbose. For a full comparison, see: http://chaijs.com/guide/styles/ I've used 'expect' in the two example tests, but left out the unnecessary chaining keywords. This makes the most sense to me but feel free to disagree. Finally, Karma is a test runner that allows us to remotely run unit tests in Chrome from the command line. We may need to use some trickery to have this work for both Chrome and Chromium, but that is for another patch. R=esprehn@chromium.org,ojan@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/411763003 git-svn-id: svn://svn.chromium.org/blink/trunk@179075 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
junov@chromium.org authored
Currently RecordingImageBufferSurface determines whether the canvas was cleared by tracking opaque draws. For this purpose we need all draw operations that completely overwrite the destination pixels to be treated as opaque even though the resulting pixels may not be opaque (alpha = 1). To solve this problem we introduce an alternate mode of operation in OpaqueRegionSkia, which was renamed to RegionTracker, to reflect its new more generic vocation. BUG=397205 TEST=blink platform unit test RecordingImageBufferSurface.clearRect Review URL: https://codereview.chromium.org/413313002 git-svn-id: svn://svn.chromium.org/blink/trunk@179074 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ojan@chromium.org authored
-x/y were swapped. Create a mock canvas context so we actually test this code path. -The zoomer was below the test list. z-index:1 to put it above. NOTRY=true Review URL: https://codereview.chromium.org/423703002 git-svn-id: svn://svn.chromium.org/blink/trunk@179073 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ch.dumez@samsung.com authored
Use tighter typing in editing to increase code readability. This CL focuses on DeleteSelectionCommand. R=leviw@chromium.org Review URL: https://codereview.chromium.org/420053002 git-svn-id: svn://svn.chromium.org/blink/trunk@179072 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
- 28 Jul, 2014 17 commits
-
-
eae@chromium.org authored
Fix the loop condition in BidiRunList::replaceRunWithRuns to check if a next run exists before accessing it. R=inferno@chromium.org BUG=397479 Review URL: https://codereview.chromium.org/421383002 git-svn-id: svn://svn.chromium.org/blink/trunk@179068 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ch.dumez@samsung.com authored
Use new Traversal<> API more in the code base to simplify code a bit and increase readability. R=esprehn@chromium.org, adamk@chromium.org Review URL: https://codereview.chromium.org/420193007 git-svn-id: svn://svn.chromium.org/blink/trunk@179067 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
haraken@chromium.org authored
This CL replaces Document* pointers in objects with Member<Document>s. - Move TextAutosizer to oilpan's heap. - Move FastTextAutosizer to oilpan's heap. - Make FastBulider STACK_ALLOCATED. - Make ViewportStyleResolver::m_document a Member. BUG=340522 Review URL: https://codereview.chromium.org/420273005 git-svn-id: svn://svn.chromium.org/blink/trunk@179066 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
jchaffraix@chromium.org authored
The functions have been converted to ConvertableToTraceFormat since this comment was introduced but it wasn't removed. Review URL: https://codereview.chromium.org/423943004 git-svn-id: svn://svn.chromium.org/blink/trunk@179065 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ch.dumez@samsung.com authored
Remove Traversal<Element> template specializations for lastWithin() / previous() as they are now identical to the generic implementations after r178540. R=esprehn@chromium.org, abarth@chromium.org Review URL: https://codereview.chromium.org/413133008 git-svn-id: svn://svn.chromium.org/blink/trunk@179064 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
rob.buis@samsung.com authored
These calls do nothing and in fact cause extra cycles in Element::styleForRenderer(). Review URL: https://codereview.chromium.org/419033002 git-svn-id: svn://svn.chromium.org/blink/trunk@179063 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ch.dumez@samsung.com authored
Move Node::lastDescendantOrSelf() to NodeTraversal and rename to lastWithinOrSelf() as this is a node traversal utility function and it avoids code duplication with NodeTraversal::lastWithin(). R=esprehn@chromium.org, adamk@chromium.org Review URL: https://codereview.chromium.org/420323002 git-svn-id: svn://svn.chromium.org/blink/trunk@179062 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ch.dumez@samsung.com authored
Use ContainerNode::hasChildren() instead of firstChild() in conditionals to increase code readability a bit. R=rob.buis@samsung.com Review URL: https://codereview.chromium.org/428533006 git-svn-id: svn://svn.chromium.org/blink/trunk@179061 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
wangxianzhu@chromium.org authored
BUG=391177 R=dsinclair@chromium.org Review URL: https://codereview.chromium.org/403723004 git-svn-id: svn://svn.chromium.org/blink/trunk@179060 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
wangxianzhu@chromium.org authored
When an object is being removed, it calls paintInvalidationForWholeRenderer() which previously invalidated the current repaint rect only. However if the object has been layouted after the last invalidation, we'll miss invalidation of the object's previous location. Now let the method also invalidate the previous paint rect if possible. BUG=392794, 394004 TEST=fast/repaint/remove-block-after-layout.html TEST=fast/repaint/remove-inline-after-layout.html TEST=fast/repaint/remove-inline-layer-after-layout.html R=dsinclair@chromium.org, jchaffraix@chromium.org Review URL: https://codereview.chromium.org/395463003 git-svn-id: svn://svn.chromium.org/blink/trunk@179059 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
jsbell@chromium.org authored
We've shipped unprefixed (e.g. indexedDB, IDBKeyRange, etc) for almost two years. Time to at least try to wean the web off of them. Intent to Deprecate: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/6TD2jjqAJs0 Review URL: https://codereview.chromium.org/415753002 git-svn-id: svn://svn.chromium.org/blink/trunk@179058 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ch.dumez@samsung.com authored
Traversal<*Element>::lastWithin() is incorrect after r178540 because it changed from using ElementTraversal::lastWithin() to using Node.lastChild() when doing node traversal. The proper API for this is NodeTraversal::lastWithin() as we want the last descendant, not the last child. This was not caught by layout tests because this template specialization is currently unused. Current callers are using the simpler Traversal<Element> template specialization. R=abarth@chromium.org, esprehn@chromium.org Review URL: https://codereview.chromium.org/416933002 git-svn-id: svn://svn.chromium.org/blink/trunk@179057 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ch.dumez@samsung.com authored
This CL inlines clearChildNodeListCache() in the caller as there is only one to avoid an unnecessary isChildNodeList() virtual call. The calling method is invalidateNodeListCachesInAncestors(), which this CL moves from Node to ContainerNode to make sure it is only called for ContainerNodes (Only ContainerNodes' node lists have caches that need invalidation). R=adamk@chromium.org, esprehn@chromium.org Review URL: https://codereview.chromium.org/413763004 git-svn-id: svn://svn.chromium.org/blink/trunk@179056 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ch.dumez@samsung.com authored
Remove ContainerNode overload for NodeTraversal::nextSkippingChildren() as it adds no benefit compared to the one taking a Node in argument. The nextSkippingChildren() implementation does not involves visiting the children (and thus calling firstChild() / lastChild()). Therefore, there is no benefit to knowing that the argument is a ContainerNode (unlike for NodeTraversal::next()). This CL also does the same for ElementTraversal::nextSkippingChildren(). R=esprehn@chromium.org, adamk@chromium.org Review URL: https://codereview.chromium.org/420603012 git-svn-id: svn://svn.chromium.org/blink/trunk@179055 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tfarina@chromium.org authored
I need this to be able to remove blink_common_resources from Chromium. BUG=338338 TEST=None R=brettw@chromium.org, TBR=abarth@chromium.org Review URL: https://codereview.chromium.org/424503002 git-svn-id: svn://svn.chromium.org/blink/trunk@179053 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
kenrb@chromium.org authored
We are not yet able to use inspector agents when the top-level frame is in another process. This patch prevents a crash in that scenario. BUG=357747 Review URL: https://codereview.chromium.org/422943002 git-svn-id: svn://svn.chromium.org/blink/trunk@179052 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
kochi@chromium.org authored
As a part of ScopedStyleTree removal (issue 392018), remove all private members in ScopedStyleTree. |m_cache| is no longer necessary as ScopedStyleResolver lookup from an element no longer require ascending the DOM tree up, thanks to <style scoped> removal. Unfortunately |m_authorStyles| cannot be removed completely - StyleResolver still has to clear ScopedStyleResolvers which are associated with TreeScopes, and thus moved from ScopedStyleTree to StyleResolver (and renamed |m_scopedStyleResolvers| to match what it contains). BUG=392018 TEST=no layout test failures Review URL: https://codereview.chromium.org/418833002 git-svn-id: svn://svn.chromium.org/blink/trunk@179051 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-