Граф коммитов

376 Коммитов

Автор SHA1 Сообщение Дата
Daniel Holbert 890fc2ed6c Bug 598798 patch 4: Remove hard-coded GraphicsFilter from nsLayoutUtils::DrawSingleUnscaledImage, and make its dirty-rect argument optional. r=roc a=blocking-betaN 2010-10-11 13:08:07 -07:00
Daniel Holbert 9a8be12f1c Bug 598798 patch 3: Add typedef for gfxPattern::GraphicsFilter to nsLayoutUtils. r=roc a=blocking-betaN 2010-10-11 13:07:59 -07:00
L. David Baron 86a617e692 Change callers to use new nsIFrame overflow APIs. (Bug 542595, patch 20) r=roc a2.0=blocking2.0:beta8 2010-10-06 21:25:47 -07:00
Tom Brinkman e23595f3c1 Bug 576437 - CreateOffscreenSurface should not silently translate ImageFormat24 into ImageFormat16_565. r=joe a=blocking2.0 2010-09-16 14:34:53 -07:00
Chris Jones d8f9eb58aa Merge m-c --> cedar 2010-09-13 19:24:09 -05:00
Oleg Romashin 8c88c718ff Merge with mozilla central 2779c55431a4, no conflicts 2010-09-10 22:32:25 -07:00
Chris Jones 3b953ced69 Merge m-c --> cedar 2010-09-08 17:25:30 -05:00
L. David Baron dd64617da3 Add a (wrapping) display item that clips its contents to the curvature of a border-radius. (Bug 459144, patch 13) r=roc a2.0=blocking2.0:beta6 2010-09-09 08:21:46 -07:00
L. David Baron b157c42495 Add support for calc() on -moz-border-radius and -moz-outline-radius. (Bug 585715) r=bzbarsky a2.0=blocking2.0:beta6 2010-09-09 08:21:45 -07:00
L. David Baron d022f13c66 Change the blur radius for -moz-box-shadow and text-shadow to match what is specified in css3-background, and the blur radius for canvas to follow what is specified in HTML5. (Bug 590039) r=roc a2.0=blocking2.0:beta6
This fixes the multiplication by 1.5 in
gfxAlphaBoxBlur::CalculateBlurRadius (originally added in changeset
ce9f05b57b95 for bug 467518) to work correctly.  It was previously a
multiplication by 1 due to integer division.  CalculateBlurRadius
previously multiplied by 1.880; it now multiplies by 2.820.

This changes canvas shadow handling to multiply shadowBlur by 2 before
taking its square root, as described in the spec.  This means that
canvas shadow blurs 8px or smaller are 1.5 times larger than they were
previously (due to the CalculateBlurRadius change), and canvas shadow
blurs larger than 8px are 2.121 times larger than they were previously
(due to the CalculateBlurRadius change *and* the additional factor of
sqrt(2)).

This changes text-shadow and -moz-box-shadow handling to use
CalculateBlurRadius on half of the value given instead of passing the
value through directly.  This means that text-shadow and box-shadow
blurs are multiplied by 1.410 relative to their old sizes.  It also
means that we round rather than floor, so that the effect that used to
be drawn by a blur in the range 1px to 1.99px is now drawn by a blur
anywhere in the range 0.36px to 1.05px, the effect that used to be drawn
by a blur in the range 2px to 2.99px is now drawn by a blur anywhere in
the range 1.06px to 1.77px, what used to be a drawn by a blur in the
range 3px to 3.99px is now drawn by a blur anywhere in the range 1.78px
to 2.47px, etc.
2010-09-11 09:27:12 -07:00
Chris Jones 978c65eda0 Bug 590294, part 5: Add a setDisplayPort() API to allow the frontend (or whatever else) to set an arbitrary visible region for the purposes of invalidation and layer retaining. r=roc sr=dbaron 2010-09-03 15:10:46 -05:00
Chris Jones d579eff180 Bug 590294, part 4: IGNORE_VIEWPORT_SCROLLING currently implies interpreting the visible region as being relative to document space. Displayport rendering wants everything IGNORE_VIEWPORT_SCROLLING implies, except it wants the visible region to be relative to the viewport. So, split the coordinate-space interpretation into a new flag DOCUMENT_RELATIVE, which interprets the visible region as document-relative. r=tn sr=roc 2010-09-03 15:10:46 -05:00
L. David Baron d9cfa917b0 Expose RectToGfxRect on nsLayoutUtils. (Bug 459144, patch 10) r=roc a2.0=blocking:beta6+ 2010-09-07 15:20:35 -07:00
Daniel Holbert f9a2dd705a Bug 276431 Patch 10: Make imgContainer::Draw take image-viewport-size, and improve nsLayoutUtils drawing wrappers. r=roc r=joe a=blocking 2010-09-08 13:40:39 -07:00
Timothy Nikkel be242f5efb Bug 591435. Need to honour paint suppression in subdocuments. r=roc a=blocking beta6+ 2010-09-01 15:44:48 -05:00
Robert O'Callahan f54339d471 Bug 590468. Part 6: Fix setting of nsDisplayList::mOpaque, and return it from nsDisplayWrapList::IsOpaque. r=tnikkel 2010-08-27 18:15:08 -05:00
L. David Baron 2fdab0cb27 Make IsAutoHeight be a member of nsLayoutUtils so we don't have to have two copies of it. (Bug 585715) r=bzbarsky a2.0=blocking+ 2010-08-25 12:17:56 +02:00
L. David Baron 89545b0362 Add support for calc() to the 'min-width' and 'max-width' properties. (Bug 585715) r=bzbarsky a2.0=blocking+ 2010-08-25 12:17:56 +02:00
L. David Baron fce97072e6 Add support for calc() to the 'height', 'min-height', and 'max-height' properties. (Bug 585715) r=bzbarsky a2.0=blocking+ 2010-08-25 12:17:55 +02:00
L. David Baron 685f0146eb Introduce nsStyleCoord::HasPercent to check for either a percent value or a calc() value containing a percent. (Bug 585715) r=bzbarsky a2.0=blocking+ 2010-08-25 12:17:55 +02:00
L. David Baron 4cfbce614f Add support for calc() to ComputeWidthDependentValue and ComputeHeightDependentValue. Also change calc() handling of percents from using round to using floor, which changes our handling of percents on 'width' back to using floor, reverting an earlier change in this bug. (Bug 585715) r=bzbarsky a2.0=blocking+ 2010-08-25 12:17:55 +02:00
Timothy Nikkel 832194eded Bug 588692. If we can't paint with widget layers, don't try to. r=roc 2010-08-21 19:55:55 -05:00
Karl Tomlinson 4b600cf4ff b=588306 only invalidate all layers on PAINT_IGNORE_SUPPRESSION when there is suppression to ignore r=roc a=bsmedberg
--HG--
extra : rebase_source : 28d8cdebf0e8f06a33518263fa3089b317b5ccbc
2010-08-20 15:49:16 +12:00
Timothy Nikkel 9ef85e39a6 Bug 572599. If we get an event on a child widget that is in a disconnected view subtree the view subtree might not have a root widget. r=roc 2010-08-18 20:16:58 -05:00
Timothy Nikkel a4ba9d34d7 Bug 587539. When we get a paint event for a widget in a disconnected view subtree there isn't a display root widget. r=roc 2010-08-18 20:16:58 -05:00
Rob Arnold bcd5f25ef2 Bug 554982 - Add support for borderless glass and remove the borders from the main window. r=roc,dao a=blocking2.0 2010-08-17 23:07:10 -04:00
Markus Stange 180996f508 Bug 506826 - Make nsLayoutUtils::PaintFrame able to draw all continuations of a frame. r=roc 2010-08-13 15:32:04 +02:00
Markus Stange 1824fa271f Bug 572680 - Add nsLayoutUtils::DrawPixelSnapped. r=roc 2010-08-13 15:30:37 +02:00
Robert O'Callahan 50f42b728b Bug 580834. Make nsLayoutUtils::GetActiveScrolledRoot stop at the nearest popup ancestor instead of asserting. r=tnikkel,a=dbaron 2010-08-13 22:03:51 +12:00
Robert O'Callahan d9ad5ed49c Bug 579258. Remove the 'before move' region parameter to ComputeVisibility. r=tnikkel,a=joe 2010-08-13 21:55:54 +12:00
L. David Baron 2a023744e6 Add support for calc() to the 'width' property. (Bug 585715) r=bzbarsky a2.0=blocking2.0+ 2010-08-11 12:32:53 -07:00
Timothy Nikkel 8541cb5369 Bug 584617. Part 2. If we get passed an unusual backstop color we need to flush layers. r=roc a=dbaron 2010-08-08 13:49:07 -05:00
Timothy Nikkel 206bbfd8d6 Bug 584617. Part 1. Make sure that we don't use the overflow rect of the root frame instead of the dirty region when we are drawing ignoring viewport scrolling because that might be wrong. r=roc a=dbaron 2010-08-08 13:49:07 -05:00
Timothy Nikkel 6ed096006a Bug 584516. With linked view manager hierarchies we need to draw the print preview background on subdocument frames as well. r=roc 2010-08-08 13:49:07 -05:00
Timothy Nikkel 9645a5cf5c Bug 579663. Part 1. Remove unused offset param from GetActiveScrolledRootFor. r=roc 2010-08-08 13:49:06 -05:00
Chris Jones 1014dfe1fe Bug 570620, part b: Fix a hidden header depedency and add a PresShell::GetLayerManager() helper. r=tn 2010-08-05 17:11:23 -05:00
Boris Zbarsky 9e848ad2db Bug 582037. When computing intrinsic widths, take the viewport's dimensions into account when it has percent-height descendants. r=dbaron 2010-08-05 17:59:36 -04:00
Boris Zbarsky 062993e0ce Bug 577838. The first line baseline of a fieldset should be the first line baseline of its legend (if it has one), or of its content if it does not. r=dbaron 2010-08-04 22:40:19 -04:00
Felipe Gomes e2a618aa5f Bug 508906. Add experimental MozTouch events. r=smaug,jimm 2010-08-02 15:34:54 +02:00
Neil Deakin 8522fc0f13 Bug 552982, Part 4: change nsXULPopupManager::GetVisiblePopups to also return noautohide panels, r=mats 2010-07-27 09:38:03 -04:00
Timothy Nikkel 20d255fcc2 Bug 563878. Part 15. Fix GetOffsetTo callsites. r=mats 2010-07-18 21:23:48 -05:00
Robert O'Callahan 3b653c5345 Bug 564991. Part 14: Scroll using the layer system. r=mats,sr=dbaron 2010-07-16 09:08:02 +12:00
Robert O'Callahan 2ac3c549db Bug 572613. Avoid creating a SolidColor display item when possible by poking the color into the canvas background display item. r=tnikkel 2010-07-16 09:07:53 +12:00
Robert O'Callahan 4b1b78c893 Bug 564991. Part 12: Refactor RenderDocument to use nsLayoutUtils::PaintFrame. r=mats 2010-07-16 09:07:52 +12:00
Robert O'Callahan bf8f1ac279 Bug 564991. Part 11: Start retaining layer trees. r=mats 2010-07-16 09:07:51 +12:00
Robert O'Callahan 6824d17ea0 Bug 564991. Part 9: Retain layer trees. r=tnikkel,sr=mats 2010-07-16 09:07:51 +12:00
Timothy Nikkel 1259443af7 Bug 563878. Part 5. Rename nsIFrame::GetWindow(Offset) to GetNearestWidget. r=mats 2010-07-02 14:11:04 -05:00
Markus Stange d13b3a057f Bug 572680 - Pull the image snapping algorithm out of DrawImageInternal. r=roc
--HG--
extra : rebase_source : 05c59b5bd230ec54c81d34e58ce030366ebf1546
2010-07-01 18:43:06 +02:00
L. David Baron b6b9d51e5c Make unconstrained width assertions into warnings because we can hit them when we clamp really large widths. (Bug 525100) r=roc 2010-06-28 13:47:39 -07:00
Mats Palmgren ca51ca5849 Bug 536720 - Don't say the frame is in the nsGkAtoms::popupList if that list is empty. r=fantasai 2010-06-27 22:53:59 +02:00