- 02 Apr, 2014 9 commits
-
-
jsbell@chromium.org authored
Follows Blink (crrev.com/164873003) and Chromium (crrev.com/164933002) BUG=342555 Review URL: https://codereview.chromium.org/217133002 git-svn-id: svn://svn.chromium.org/blink/trunk@170621 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
esprehn@chromium.org authored
Instead of passing a boolean by reference we should just return one. Review URL: https://codereview.chromium.org/221663002 git-svn-id: svn://svn.chromium.org/blink/trunk@170620 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
haraken@chromium.org authored
r170531 copied files to make the diff of r170536 saner. Now that r170536 was reverted, we need to revert r170531 at the same time. Otherwise, we'll leave meaningless files in the code base. TBR=tkent Review URL: https://codereview.chromium.org/221663003 git-svn-id: svn://svn.chromium.org/blink/trunk@170619 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
http://trac.webkit.org/changeset/151623senorblanco@chromium.org authored
This is a merge of http://trac.webkit.org/changeset/151623 by Simon Fraser <simon.fraser@apple.com>. It was a mostly-mechanical merge. The reftest fixed-backgrounds.html required some tweaking, since it relied on composited and non-composited output being identical. This required changing the shadow from a soft shadow to a hard shadow. BUG=330852 -- Source/WebCore: Painting of fixed background images is wrong in composited layers https://bugs.webkit.org/show_bug.cgi?id=65793 Reviewed by Sam Weinig. The code that computed background image geometry for background-attachment:fixed images was unaware of compositing, so often painting the image at the wrong location. Fix by having RenderBoxModelObject::calculateBackgroundImageGeometry() do the correct math for fixed backgrounds in composited layer by offsetting the viewport rect by the paint container's absolute position. Tests: compositing/backgrounds/fixed-background-on-descendant.html compositing/backgrounds/fixed-backgrounds.html rendering/RenderBox.cpp: (WebCore::RenderBox::getBackgroundPaintedExtent): Now returns a bool indicating whether it is returning a reliable extent rect. It can return false in the case where a background is fixed, since computing the correct extent would require finding the appropriate composited ancestor to pass to calculateBackgroundImageGeometry(). This is OK since this function is used for "background opaque" optimizations. (WebCore::RenderBox::computeBackgroundIsKnownToBeObscured): If getBackgroundPaintedExtent() returns false, return false. (WebCore::RenderBox::maskClipRect): We removed mask-attachment, so we never need to compute the composited ancestor here and can pass null. (WebCore::RenderBox::repaintLayerRectsForImage): Unwrap a comment. If the changed image is related to a fixed background, geometry.hasNonLocalGeometry() will be true. In that cause, just repaint the entire renderer rather than groveling around for a composited ancestor. rendering/RenderBox.h: Changed name and signature of backgroundPaintedExtent. rendering/RenderBoxModelObject.cpp: (WebCore::RenderBoxModelObject::paintFillLayerExtended): calculateBackgroundImageGeometry() now needs to know the painting container. (WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry): Now takes a painting container, that is required to correctly compute the viewport-relative offset for fixed backgrounds. geometry.setHasNonLocalGeometry() is set for fixed backgrounds to indicate to callers that, if they didn't pass a paint container, the destRect is not accurate. The main bug fix is also here: we move the viewportRect by the absolute location of paint container, which is equivalent to the composited layer offset. (WebCore::RenderBoxModelObject::getGeometryForBackgroundImage): calculateBackgroundImageGeometry() takes a paint container. rendering/RenderBoxModelObject.h: (WebCore::RenderBoxModelObject::BackgroundImageGeometry::BackgroundImageGeometry): (WebCore::RenderBoxModelObject::BackgroundImageGeometry::setHasNonLocalGeometry): (WebCore::RenderBoxModelObject::BackgroundImageGeometry::hasNonLocalGeometry): rendering/RenderImage.cpp: (WebCore::RenderImage::computeBackgroundIsKnownToBeObscured): If getBackgroundPaintedExtent() can't cheaply give an accurate answer, return false. rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::updateDirectlyCompositedBackgroundImage): Pass the paint container, which is our own renderer. LayoutTests: Fixed background images behave strangely with webkit transitions https://bugs.webkit.org/show_bug.cgi?id=65793 Reviewed by Sam Weinig. Ref tests that compare fixed background rendering after a scroll, with and without compositing, with a couple of layer configurations. compositing/backgrounds/fixed-background-on-descendant-expected.html: Added. compositing/backgrounds/fixed-background-on-descendant.html: Added. compositing/backgrounds/fixed-backgrounds-expected.html: Added. compositing/backgrounds/fixed-backgrounds.html: Added. Review URL: https://codereview.chromium.org/102123013 git-svn-id: svn://svn.chromium.org/blink/trunk@170618 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
abarth@chromium.org authored
TBR=dpranke@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/219963018 git-svn-id: svn://svn.chromium.org/blink/trunk@170617 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
dpranke@chromium.org authored
This is a speculative revert to see if causes the WebKit Android N4 bot to stop crashing. TBR=haraken@chromium.org, rafaelw@chromium.org, tkent@chromium.org BUG= Review URL: https://codereview.chromium.org/219963019 git-svn-id: svn://svn.chromium.org/blink/trunk@170616 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
skobes@chromium.org authored
Fix assertion in beginLayout on resize. BUG=353309 Review URL: https://codereview.chromium.org/221193004 git-svn-id: svn://svn.chromium.org/blink/trunk@170615 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
pdr@chromium.org authored
This patch fixes a bug where <use> elements did not work in author shadow trees due to a restriction that <use> trees are not expanded inside shadow trees. This restriction was in place so that we don't nest <use> shadow trees but instead expand nested <use> elements manually using the top-level <use> element. For example: <defs> __<use id="a"> ____<rect> __<use id="b" xlink:href="#a"> </defs> <use id="c" xlink:href="#b"> When creating the "c" shadow tree, "b" is first added: <use id="c"> __#user-agent-shadow-root ____<use id="b"> And then "b" is "expanded" (see: expandUseElementsInShadowTree): <use id="c"> __#user-agent-shadow-root ____<g id="b"> ______<use id="a"> Finally "a" is "expanded": <use id="c"> __#user-agent-shadow-root ____<g id="b"> ______<g id="a"> ________<rect> The checks preventing <use> tree expansion in shadow trees were intended to prevent the nested <use> elements (or <symbol>) from creating nested shadow roots--notice there is only one shadow root in the above example. This patch switches the isInShadowTree checks with isInUserAgentShadowTree which will prevent <use> elements from cloning their targets when nested inside another <use> shadow tree, but allow <use> elements with author shadow roots. BUG=356891 Review URL: https://codereview.chromium.org/216463003 git-svn-id: svn://svn.chromium.org/blink/trunk@170614 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
esprehn@chromium.org authored
Element::supportsStyleSharing() always returns false for elements that are hovered, focused or active or are the :target so we don't need to check those in the SharedStyleFinder. Review URL: https://codereview.chromium.org/221463004 git-svn-id: svn://svn.chromium.org/blink/trunk@170613 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
- 01 Apr, 2014 31 commits
-
-
a.cavalcanti@samsung.com authored
BUG=357672 Review URL: https://codereview.chromium.org/220473008 git-svn-id: svn://svn.chromium.org/blink/trunk@170612 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
chrishtr@chromium.org authored
This is necessary because a relation() of SubSelector does not in all cases guarantee that tagHistory() is non-NULL. This happens in particular for this selector: af|inputtext:focus::content { ... } BUG=358475 Review URL: https://codereview.chromium.org/218403012 git-svn-id: svn://svn.chromium.org/blink/trunk@170611 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
abarth@chromium.org authored
This CL unpacks the arguments to updateAfterLayout from being a bit field to being separate Boolean values. As part of that unpacking, I learned that one of the bits is always set, which let me remove an argument to updateCompositingDescendantGeometry because it was always the same. Review URL: https://codereview.chromium.org/220163006 git-svn-id: svn://svn.chromium.org/blink/trunk@170610 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
avi@chromium.org authored
This was used to find frames by xpath, but it has no remaining callers. BUG=304341 TEST=no change Review URL: https://codereview.chromium.org/215473002 git-svn-id: svn://svn.chromium.org/blink/trunk@170609 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
eae@chromium.org authored
Change FontCacheSkiaWin to set the minimum font size for anti aliasing on a per script basis and assign min sizes for Han, Hiragana, Katakana, Hangul, and Bengali. The current values where chosen by picking the minimum value for which Wikipedia in said script was legible and will likely require further tweaking based on user input. R=dglazkov@chromium.org BUG=357864 Review URL: https://codereview.chromium.org/221153002 git-svn-id: svn://svn.chromium.org/blink/trunk@170608 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
rafaelw@chromium.org authored
Speculative rollout of r170564 to see if unit_tests and content_unittests start working again. TBR=haraken BUG=340522 Review URL: https://codereview.chromium.org/219243014 git-svn-id: svn://svn.chromium.org/blink/trunk@170602 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
jdduke@chromium.org authored
The pad-gesture-fling layout tests assumes the fling curve will generate a minimum number of events. This may not always hold, depending on the fling curve parameters, the fling curve update frequency and whether the main thread is slow. Instead, impose a maximum limit on the number of fling updates it takes to reach the minimum offset target, and use preventDefault() on the mousewheel event to prevent the fling from terminating early. Review URL: https://codereview.chromium.org/219243010 git-svn-id: svn://svn.chromium.org/blink/trunk@170597 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
skobes@chromium.org authored
BUG=353309 Review URL: https://codereview.chromium.org/209413002 git-svn-id: svn://svn.chromium.org/blink/trunk@170596 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
pfeldman@chromium.org authored
Review URL: https://codereview.chromium.org/221253002 git-svn-id: svn://svn.chromium.org/blink/trunk@170595 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ojan@chromium.org authored
http://src.chromium.org/viewvc/blink?view=revision&revision=170448 TBR=pdr@chromium.org Review URL: https://codereview.chromium.org/219963010 git-svn-id: svn://svn.chromium.org/blink/trunk@170593 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ch.dumez@samsung.com authored
Move HTMLCollection's id / name cache to a new class. HTML's collection m_hasValidIdNameCache, m_idCache and m_nameCache members were replaced by a single OwnPtr that holds an instance of NamedItemCache when populated. Most HTMLCollections do not have a valid namedItemCache so we end up saving some memory. This also makes the code a bit clearer. This patch is based on the following WebKit revision by rniwa@webkit.org: http://trac.webkit.org/changeset/164772 R= Review URL: https://codereview.chromium.org/215073003 git-svn-id: svn://svn.chromium.org/blink/trunk@170592 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
jchaffraix@chromium.org authored
The code to generate an invalidation for StyleDifferenceRepaint and outline decrease in RenderLayerModelObject::styleWillChange is duplicated with the one in RenderObject::styleWillChange. This meant that we would generate 2 identical invalidations for each repaint-cue or outline decrease. Review URL: https://codereview.chromium.org/217973002 git-svn-id: svn://svn.chromium.org/blink/trunk@170591 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
rob.buis@samsung.com authored
This patch removes shape-padding support, since it can be used only with shape-inside. Shape-inside support has been removed in r170260. BUG=356778 Review URL: https://codereview.chromium.org/216793009 git-svn-id: svn://svn.chromium.org/blink/trunk@170590 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
robhogan@gmail.com authored
previousRegionLogicalHeight() was not getting updated in RenderFlowThread::validateRegions() and previousRegionLogicalWidth() was updated but not used. Review URL: https://codereview.chromium.org/147653002 git-svn-id: svn://svn.chromium.org/blink/trunk@170589 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
dgozman@chromium.org authored
BUG=327641 Review URL: https://codereview.chromium.org/212103004 git-svn-id: svn://svn.chromium.org/blink/trunk@170587 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
apavlov@chromium.org authored
R=aandrey, pfeldman Review URL: https://codereview.chromium.org/213423010 git-svn-id: svn://svn.chromium.org/blink/trunk@170585 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
enne@chromium.org authored
R=acolwell@chromium.org BUG=353373 Review URL: https://codereview.chromium.org/220183002 git-svn-id: svn://svn.chromium.org/blink/trunk@170583 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
caseq@chromium.org authored
BUG=358679 Review URL: https://codereview.chromium.org/221093002 git-svn-id: svn://svn.chromium.org/blink/trunk@170582 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
caseq@chromium.org authored
Also, highlight record on hover. BUG= Review URL: https://codereview.chromium.org/213673005 git-svn-id: svn://svn.chromium.org/blink/trunk@170581 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
hayato@chromium.org authored
It's time to expose only ShadowRoot constructor. The chromium side patch is here: https://codereview.chromium.org/217013005/. BUG=242153 Review URL: https://codereview.chromium.org/216123005 git-svn-id: svn://svn.chromium.org/blink/trunk@170580 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
pfeldman@chromium.org authored
R=sergeyv@chromium.org Review URL: https://codereview.chromium.org/220903002 git-svn-id: svn://svn.chromium.org/blink/trunk@170579 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
lushnikov@chromium.org authored
This patch removes live location from header stylesheet on dispose action. Review URL: https://codereview.chromium.org/217423015 git-svn-id: svn://svn.chromium.org/blink/trunk@170578 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
pfeldman@chromium.org authored
BUG=358534 R=apavlov@chromium.org Review URL: https://codereview.chromium.org/221033003 git-svn-id: svn://svn.chromium.org/blink/trunk@170577 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
gyuyoung.kim@samsung.com authored
As r170438, WebViewImpl has owned m_m_speechInputClient member variable. However, it is also only used for passing a pointer of SpeechInputClient. It is useless. To remove it, we need to change parameter type to OwnPtr|PassOwnPtr in SpeechInput class. Besides OwnPtr|PassOwnPtr help to manage the client pointer more safely. BUG=N/A Review URL: https://codereview.chromium.org/219273002 git-svn-id: svn://svn.chromium.org/blink/trunk@170576 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
lushnikov@chromium.org authored
This patch hides autocomplete suggestion box in editor whenever autocopmletion prefix length is zero. BUG=358255 Review URL: https://codereview.chromium.org/219773004 git-svn-id: svn://svn.chromium.org/blink/trunk@170573 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
junov@chromium.org authored
This change adds the APIs specified in the feature proposal found here: http://wiki.whatwg.org/wiki/Canvas_Context_Loss_and_Restoration The API changes are hidden behind the experimental canvas features flag. This change does not implement any elective canvas evictions. Those will be added in a future change. Only pre-existing context loss use cases are handled, such as failure to allocate a backing store, and gpu failures. The strategy for recovering from a GPU context lost was modified substantially in order to accomodate synchronization issues with the context restored event. Context restoration is now attempted proactively through a scheduled event. Prior to this change, restoration happened lazily when trying to use the canvas. BUG=322335 R=senorblanco@chromium.org Review URL: https://codereview.chromium.org/211503006 git-svn-id: svn://svn.chromium.org/blink/trunk@170572 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
tommyw@chromium.org authored
more standards compliance work: Track.stop should not any more stop the source until all tracks using the same source is stopped. BUG=357503 Review URL: https://codereview.chromium.org/219453002 git-svn-id: svn://svn.chromium.org/blink/trunk@170571 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
ager@chromium.org authored
TBR=haraken@chromium.org, zerny@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/220233007 git-svn-id: svn://svn.chromium.org/blink/trunk@170569 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
haraken@chromium.org authored
We're incrementally replacing RefPtr<DOMWrapperWorld> with RefPtr<NewScriptState>. See the bug description for more details. BUG=357144 Review URL: https://codereview.chromium.org/218493013 git-svn-id: svn://svn.chromium.org/blink/trunk@170567 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
alph@chromium.org authored
Do not skip method invocations inside requestAnimationFrame when it has entered a new batch sequence. Otherwise the scheduled method invocations get lost. Review URL: https://codereview.chromium.org/213833016 git-svn-id: svn://svn.chromium.org/blink/trunk@170566 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-
nhiroki@chromium.org authored
StorageQuotaClient can be null in some contexts. BUG=346577 TEST=run the failed test locally (see the issue) Review URL: https://codereview.chromium.org/212123005 git-svn-id: svn://svn.chromium.org/blink/trunk@170565 bbb929c8-8fbe-4397-9dbb-9b2b20218538
-