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

360 Коммитов

Автор SHA1 Сообщение Дата
Ehsan Akhgari bdd1cdb13d Bug 157681 - Part 2: Optimize positioned frame offset changes by moving the frame as opposed to reflowing it in case we know that the size of the frame will not change; r=dbaron
This patch adds a change hint to signal that one of the offsets on a
frame has been changed.  When processing the hint, we do one of the
following things based on the position property of the frame.

* For static frames, we ignore the offset changes completely, as they
  will not change the layout.
* For relative positioned frames, this patch refactors the
  nsHTMLReflowState::ComputeRelativeOffsets function so that it can be
  used from other callers, and it uses that to compute the new relative
  offsets, and uses the offsets computed previously to compute the new
  position of the frame.
* For absolute positioned frames, we set up a fake parent reflow state
  object, and then we create a new reflow state object for the frame in
  question.  This setup is similar to what nsFrame::BoxReflow does.
  Once we have the new reflow state object, we use it to compute the
  absolute offsets, and then we use the computed offsets to set the new
  position of the frame.  The offset computation is similar to what
  nsAbsoluteContainingBlock::ReflowAbsoluteFrame does.  In some cases
  where it is possible for the dimensions of the frame to change based
  on the offset changes, we fall back to a full reflow.
2012-06-06 00:53:48 -04:00
L. David Baron 6642be49cb Remove nsStyleBorder::GetActualBorder, since it now does the same thing as nsStyleBorder::GetComputedBorder. (Bug 713643, patch 3) r=bzbarsky 2012-05-30 22:19:49 -07:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Robert Longson 8953e7caaf Bug 528332 - Implement non-scaling-stroke vector-effect. Part 1 - style system changes r=dbaron 2012-05-18 09:33:40 +01:00
Makoto Kato e70f17856c Bug 249159 - Part 2 Implement CSS3 Text word-break property. r=dbaron, smontagu 2012-05-07 12:18:23 -07:00
John Daggett 4984947d00 Bug 718539. Update font-feature-settings to latest spec syntax. r=dbaron 2012-04-26 15:24:26 +09:00
Nathan Froyd cb640ed02d Bug 746276 - pack style structures more carefully; r=bz 2012-04-17 15:22:49 -04:00
Lazar Sumar e55f832fac Bug 548375 - Implement css3-background background-repeat property two value syntax. r=dbaron 2012-02-24 21:23:14 -08:00
Zack Weinberg f4fb4a1991 Bug 729142 - Convert layout/style to MOZ_STATIC_ASSERT. r=dbaron 2012-02-23 08:19:00 -08:00
Jonathan Watt f4f67ef82f Bug 416581, part 2 - Pay attention to the 'lang' attribute when fetching the user's font prefs for the CSS cascade. r=dbaron. 2012-01-25 23:52:26 +00:00
Mats Palmgren 3441a254aa merge backout 2012-02-07 12:31:44 +01:00
Mats Palmgren 0e9e24f0c7 Backout Part 4 of bug 524925 (73eaf1199ff0). r=roc 2012-02-07 12:31:37 +01:00
Mats Palmgren 10fd500a82 Backout bug 719177 (2cae7e5c62ae,07bd73451aa4,13739446fc8e,0246973f2513,f222fbece983,8f11aaac24dc). r=roc 2012-02-07 12:31:24 +01:00
Mats Palmgren 1144b2f834 Bug 719177 - Changes to 'clip' only needs to update the overflow areas and repaint but does not need a reflow. r=roc 2012-01-28 04:35:59 +01:00
Mats Palmgren ff48d8d15b Bug 719177 - Changes to 'border-image-outset' only needs to update the overflow areas and repaint but does not need a reflow. r=roc 2012-01-28 04:35:59 +01:00
Mats Palmgren dbad187e8c Bug 719177 - Introduce NS_STYLE_HINT_UPDATE_OVERFLOW as a short-hand for nsChangeHint(nsChangeHint_RepaintFrame | nsChangeHint_UpdateOverflow). r=roc 2012-01-28 04:35:59 +01:00
Mats Palmgren 3808c1ebe2 Bug 719177 - Changes to '-moz-text-blink' and some 'text-decoration-style' values only need to update the overflow areas and repaint, not reflow. r=roc 2012-01-28 04:35:58 +01:00
Mats Palmgren d79b04f5a7 Bug 719177 - Replace all NS_STYLE_HINT_VISUAL with nsChangeHint_RepaintFrame except for 'visibility' and 'z-index' which are the only ones that need SyncFrameView. r=roc 2012-01-28 04:35:58 +01:00
Mats Palmgren 3d4e1b9097 Bug 719177 - Changes to 'text-shadow' and 'box-shadow' only needs to update the overflow areas and repaint, not reflow. Changes to border style/color/etc only needs repaint, not SyncFrameView. r=roc 2012-01-28 04:35:58 +01:00
Mats Palmgren c372ed8042 Bug 524925 - Make outline style changes update the overflow and repaint instead of reflow. part=4/6 r=roc 2012-01-18 21:04:51 +01:00
Mats Palmgren c440256fa3 Bug 524925 - Make all transform style changes update the overflow and repaint instead of reflow. part=3/6 r=roc 2012-01-18 21:04:51 +01:00
Jonathan Watt f36738d918 Bug 416581, part 1 - Move mLanguage from nsStyleVisibility to nsStyleFont. r=dbaron. 2012-01-24 13:09:55 +00:00
Benjamin Stover dc9cd57308 Bug 524925 - Recompute overflow without reflowing for transforms. part=1/6 r=dbaron
Add an extra change hint, UpdateOverflow, that can be used to specify that
a frame's overflow areas may have changed and that they need to be recalculated.
When a transform on a frame changes, instead of marking it for reflow, set this
hint instead.

There is an added virtual function on nsIFrame, UpdateOverflow, which is called
recursively on a frame when the corresponding hint is set, to allow it to
update its overflow areas.
2011-06-15 14:03:49 -07:00
Simon Montagu a05832e834 Implement text-align-last. Bug 536557, r=dbaron 2012-01-12 19:52:21 +02:00
Ed Morley afde8417a5 Backout 6605cc311ec5 & 9217303c2e5c (bug 536557) for M4 orange 2012-01-12 15:33:00 +00:00
Simon Montagu ad89de3591 Implement text-align-last. Bug 536557, r=dbaron 2012-01-12 16:29:20 +02:00
Scott Johnson 1575ebf83f Bug 695222 - Implement column-fill part of CSS3 multicol spec. r=roc,dbaron 2011-12-25 23:25:59 -06:00
William Chen e1ff790f8b Bug 497995: Part 1 - Implement border-image revisions in latest css3-background spec. r=dbaron
--HG--
extra : rebase_source : 5a6cdac6a4b1353170f23f39dd2a209374e72531
2011-12-22 18:34:45 -05:00
Scott Johnson aef90f0f50 Backout changeset 93f523345fb6. 2011-12-20 00:01:32 -06:00
Scott Johnson 35fbd86079 Bug 695222 - Implement column-fill part of CSS3 multicol spec. r=roc,dbaron 2011-12-19 23:11:54 -06:00
Scott Johnson 578a640a52 Backed out changeset 74555805376d 2011-12-19 23:08:52 -06:00
Scott Johnson d6fe638038 Bug 695222 - Implement column-fill part of CSS3 multicol spec. r=roc,dbaron 2011-12-19 22:25:19 -06:00
Robert O'Callahan cae8494cd7 Bug 702739. Don't dirty the transformed frame when we reflow it due to a transform change. r=mats 2011-12-19 10:57:27 +13:00
Matt Brubeck f51deee1fa Back out bug 710521, bug 672013, bug 702739 because of Mac reftest failures 2011-12-18 08:15:09 -08:00
Robert O'Callahan 092577b79e Bug 702739. Don't dirty the transformed frame when we reflow it due to a transform change. r=mats 2011-12-18 21:46:39 +13:00
L. David Baron 59c0a28be1 Add support for -moz-text-size-adjust CSS property. (Bug 627842, patch 1) r=bzbarsky
This property is analogous to the -webkit-text-size-adjust property (and
*maybe* also the -ms-text-size-adjust property).  It allows pages to opt
out of text size adjustments performed on mobile devices by specifying
-moz-text-size-adjust: none.
2011-11-23 18:48:23 -08:00
Boris Zbarsky 50e24a68bc Bug 608756. Cache display structs in the ruletree even for floated and positioned elements. r=dbaron
The basic idea is that mOriginalDisplay and mOriginalFloats are kept synchronized with mDisplay and mFloats unless the latter are changed due to position:absolute/fixed (for both) or float:left/right (for display).  When initializing an nsStyleDisplay from a start struct, we restore the values from mOriginalDisplay/Floats to get correct behavior.
2011-10-29 03:04:20 -04:00
Masatoshi Kimura 270439fd7b Bug 685400 - add "to" syntax and "magic corner" feature to CSS linear gradient. r=dbaron
--HG--
rename : layout/reftests/css-gradients/linear-ref.html => layout/reftests/css-gradients/linear-1-ref.html
rename : layout/reftests/css-gradients/linear.html => layout/reftests/css-gradients/linear-1b.html
rename : layout/reftests/css-gradients/linear-diagonal-1-ref.html => layout/reftests/css-gradients/linear-diagonal-1c.html
rename : layout/reftests/css-gradients/linear-diagonal-2-ref.html => layout/reftests/css-gradients/linear-diagonal-2c.html
rename : layout/reftests/css-gradients/linear-diagonal-3-ref.html => layout/reftests/css-gradients/linear-diagonal-3c.html
rename : layout/reftests/css-gradients/linear-diagonal-4-ref.html => layout/reftests/css-gradients/linear-diagonal-4c.html
rename : layout/reftests/css-gradients/linear-keywords-ref.html => layout/reftests/css-gradients/linear-keywords-1-ref.html
rename : layout/reftests/css-gradients/linear-keywords.html => layout/reftests/css-gradients/linear-keywords-1b.html
2011-10-22 21:41:11 +02:00
Ehsan Akhgari 92064e6d3f Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Ehsan Akhgari 4df687ca99 Bug 686247 - Text control frames should accept dynamic changes to the CSS overflow property; r=bzbarsky,surkov 2011-09-13 15:09:51 -04:00
Ehsan Akhgari 2cb2e9f876 Backout changeset 2705abe8d3f2 (bug 686247) again because of the accessibility test failures 2011-09-13 17:42:43 -04:00
Ehsan Akhgari 2ee18355b9 Bug 686247 - Text control frames should accept dynamic changes to the CSS overflow property; r=bzbarsky,surkov 2011-09-13 15:09:51 -04:00
Ehsan Akhgari 23974947f6 Backed out changeset c9013399fa39 (bug 686247) because of mochitest-a11y failures on Linux 2011-09-13 13:29:30 -04:00
Ehsan Akhgari 4d7f2bb145 Bug 686247 - Text control frames should accept dynamic changes to the CSS overflow property; r=bzbarsky,surkov 2011-09-13 11:45:54 -04:00
Matt Woodrow b98fe1bd08 Bug 505115 - Part 14a - Add -moz-transform-style css property. r=dbaron 2011-08-27 12:01:06 +12:00
Jeff Walden 287bf75e80 Bug 609714 - Properly compute background image size for vector background images lacking intrinsic sizes or an intrinsic aspect ratio. r=dholbert, r=dbaron
--HG--
extra : rebase_source : 9b018973a13a50f7616cac2a369bc3a61ccd5927
2011-01-13 04:40:12 -06:00
Matt Woodrow b84eabcf4a Bug 505115 - Part 12a - Implement -moz-perspective-origin style property. r=dbaron 2011-08-03 15:04:24 +12:00
Matt Woodrow 236f72943c Bug 505115 - Part 11a - Add nsCSSValueTriplet and optionally read a z component to -moz-transform-origin. r=dbaron 2011-08-03 15:04:23 +12:00
Matt Woodrow 7a41f6a8a2 Bug 505115 - Part 10 - Implement the backface-visibility CSS property. r=dbaron 2011-08-03 15:04:22 +12:00