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

11118 Коммитов

Автор SHA1 Сообщение Дата
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Wes Kocher 14f75f943c Merge m-c to inbound a=merge CLOSED TREE 2015-03-20 18:01:17 -07:00
Alexandre Lissy 77d1e01b3c Bug 1144080 - Disable mochitests on Mulet for TaskCluster. r=ahal 2015-03-20 00:45:00 +01:00
Boris Zbarsky dc24477d79 Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp.  The
rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
1079a8625f Bug 1120705 - Part 1: Limit scrollbar button scrolls to one page per click. r=roc
- When using the scrollbar buttons to scroll a very small scroll frame,
  it is possible to scroll more than one page.  When this occurs, we
  now scroll by a page instead to maintain context between scrolls.
- When scrolling with scrollbar buttons, the
  "toolkit.scrollbox.verticalScrollDistance" and
  "toolkit.scrollbox.horizontalScrollDistance" were swapped,
  resulting in too much scrolling when scrolling vertically and too
  little scrolling when scrolling horizontally.  This has been fixed in
  ScrollFrameHelper::ScrollByLine.
2015-03-18 14:32:00 +01:00
Seth Fowler 509eb48a54 Bug 1019840 - Use cached intrinsic size in nsImageFrame::ComputeSize unless the image loader has a size. r=tn 2015-03-18 18:29:32 -07:00
Seth Fowler a2a5a162ea Bug 1141376 - Do not call OnSizeAvailable in nsImageFrame::Init. r=tn 2015-03-18 18:29:32 -07:00
Ting-Yu Lin b79c10f9e3 Bug 1140238 - Part 2: Adjust ranges after changing selection direction. r=mats
When dragging the second caret (eDirNext) over non-selectable elements,
the last range is not generated. Therefore when dragging the first
caret, we will change the selection direction to eDirPrevious, the last
range will be excluded by AutoPrepareFocusRange.

We add a new function to adjust generated bit and anchor focus range
after changing selection direction.

--HG--
extra : rebase_source : 1622818b9cbbc82e02188ec7ea8ac7951ba6f634
2015-03-18 03:26:00 -04:00
Mats Palmgren 666f29058a Bug 1139539 - part 2, [css-grid] Implement grid item containing block calculations and reflow (initial version). r=dholbert 2015-03-18 09:02:32 +00:00
Mats Palmgren 57c724ba23 Bug 1139539 - part 1, [css-grid] Implement primitive grid track sizing. r=dholbert
Basically just 11.4 "Initialize Track Sizes" in:
http://dev.w3.org/csswg/css-grid/#algo-init
2015-03-18 09:02:32 +00:00
Mats Palmgren 63f6e5c364 Bug 1107778 - part 1, [css-grid] implement automatic grid item placement. r=dholbert 2015-03-18 09:02:32 +00:00
Mats Palmgren edcb32eb0e Bug 1009776 - part 6, [css-grid] Update the spec reference in a comment. 2015-03-18 09:02:32 +00:00
Mats Palmgren 079c9c2c4f Bug 1009776 - part 5, [css-grid] Fill the cell map if the grid area is definite. r=dholbert 2015-03-18 09:02:32 +00:00
Mats Palmgren 18c26fbdc7 Bug 1009776 - part 4, [css-grid] Add a cell map to keep track of which grid cells are occupied. r=dholbert 2015-03-18 09:02:32 +00:00
Mats Palmgren 7dc47c3510 Bug 1009776 - part 3, [css-grid] Store the grid item's grid area on a frame property. r=dholbert 2015-03-18 09:02:32 +00:00
Mats Palmgren e6838ac9ee Bug 1009776 - part 2, [css-grid] Add a method to inflate the implicit grid to include a given grid area. r=dholbert 2015-03-18 09:02:32 +00:00
Mats Palmgren c6cd95c637 Bug 1009776 - part 1, [css-grid] Implement line-based placement. r=dholbert 2015-03-18 09:02:32 +00:00
Seth Fowler 726d770b60 Bug 1125055 - Sync decode layerized images if necessary. r=roc,tn 2015-03-17 19:40:16 -07:00
Seth Fowler 38b5cf43f0 Bug 1143267 - Make nsDisplayAltFeedback use nsGenericImageGeometry. r=tn 2015-03-17 19:40:16 -07:00
Xidorn Quan 99e52bd419 Bug 1143558 part 2 - Convert suppressed line break to whitespace. r=roc
--HG--
extra : source : df417e029054082fdb07fdf918ce178e0e085bca
2015-03-17 19:10:15 +11:00
Xidorn Quan 25df7941eb Bug 1143558 part 1 - Fix line break suppression when newline is significant. r=roc
--HG--
extra : source : c700ba786622769700d740c6761ca5a66879b761
2015-03-17 19:10:15 +11:00
Botond Ballo 2eb9751320 Bug 1139675 - Simplify the APIs for getting and setting the pres shell resolution. r=mstange,mattwoodrow
--HG--
extra : rebase_source : 18444e5f9304bbf9c2c14903be6aa4ebf8a08af3
extra : source : 60fe56e752d984a8d074af1bec1dfcd40a41e5f6
2015-03-06 18:07:59 -05:00
Daniel Holbert d2fb7e676f Bug 1142686: check flex item's content-box size (not border-box size) when deciding whether to skip final reflow. r=mats 2015-03-13 23:08:21 -07:00
Daniel Holbert 326494d266 Backed out changeset 6cd4d71818ee (bug 1142686) because it wasn't quite the final patch version 2015-03-13 23:07:57 -07:00
Daniel Holbert 877422a643 Bug 1142686: check flex item's content-box size (not border-box size) when deciding whether to skip final reflow. r=mats
--HG--
rename : layout/style/test/test_dynamic_change_causing_reflow.html => layout/style/test/test_flexbox_reflow_counts.html
2015-03-13 23:00:37 -07:00
Jonathan Kew 382e4487fa Bug 1141928 part 2 - Correct the position of ruby text frames. r=roc
--HG--
extra : source : 914513f894ef001ff8fc593cd36f5e702d49f184
2015-03-14 16:46:33 +11:00
Xidorn Quan b5c74cb24b Bug 1141928 part 1 - Correct the position of ruby text containers in RTL text. r=jfkthame
This patch uses the logical version of FinishReflowChild instead, so that we are able to keep the consistent logical rect, and then fix the rect with correct container width after the whole line is reflowed.

--HG--
extra : source : e944e283799cd04b87c1ed52a3fca68174bf4439
2015-03-14 16:46:33 +11:00
Xidorn Quan b806fae66c Bug 1141928 part 0 - Change line relative dir mapping code to return LogicalSide instead of physical side. r=jfkthame
This also fixes the line relative dir mapping code for inline axis direction.

--HG--
extra : source : 49a69e2193006dd6571765af0f6e464af9fec5b4
2015-03-14 16:46:33 +11:00
Xidorn Quan 6b6684aace Bug 1141919 part 2 - Drain overflow list of ruby content frame if line break suppression fails somewhere. r=dbaron
--HG--
extra : source : 53e33afd621af625133b87eb5d44fa521570c40d
2015-03-14 16:29:06 +11:00
Jonathan Griffin d1c61bc9b6 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Xidorn Quan c0df2e2d3b Bug 1142400 - Separate padding calculation in Get{Min,Pref}ISize and Reflow of nsBulletFrame. r=dbaron
--HG--
extra : source : bb4e850d9a1d2f86395cc2c4880c65073c7fd0e4
2015-03-12 20:53:54 +11:00
Xidorn Quan a0cff90eee Bug 1142369 - Include padding of generated image in intrinsic isize of bullet frame. r=roc
--HG--
extra : source : 16afdc3d6f1e987f086bb0a378e98ab747699e15
2015-03-12 16:57:08 +11:00
Robert O'Callahan c7d1538273 Bug 1125767. Centralize code into nsStylePosition::IsFixedPosContainingBlock. r=mats
Also renames IsPositioned to IsAbsPosContainingBlock.

--HG--
extra : rebase_source : b412f6291d34e30e8d57e054645bd1e04f43593f
extra : histedit_source : 01a2bd57de4eec4ecf3f3712ee609d70ca14cda4
2015-03-12 16:21:01 +13:00
Botond Ballo d7a0e22202 Bug 1130982 - With multi-FrameMetrics on APZ platforms, do not apply clips to scroll ports of frames other than the bottom-most one on the layout side. r=kats,mattwoodrow
--HG--
extra : rebase_source : d18099d4bc77c3b98ea99f218f888a5901c5f16c
2015-02-20 19:53:08 -05:00
Carsten "Tomcat" Book 0a4da0c676 Backed out changeset fdd33ef9606e (bug 969250) for m5 test failures 2015-03-11 10:33:52 +01:00
L. David Baron 3ad133576f Bug 1123979 - Make the crashtest for bug 769303 more reliable by using reftest-wait correctly. r=mats
Once we do this, we'll be able to get a better sense of how common this
intermittent failure is and where it occurs.
2015-03-20 06:47:28 -07:00
Xidorn Quan d3f55815a8 Bug 1145514 - Enable FAIL_ON_WARNINGS on MSVC in layout/generic. r=roc
--HG--
extra : source : dafc547721095aaa82a8f600396573ec34ffc581
2015-03-20 22:24:01 +11:00
Daniel Holbert acb8e18785 Bug 1128354: Don't optimize away a flex item's second reflow, if it has percent-height children. r=mats 2015-03-19 23:00:05 -07:00
Xidorn Quan c9ec579ba2 Backout a6dbd23da598 (bug 1139283) since it is currently not needed.
--HG--
extra : source : 3acc263e7d18fc2946bd043edcf7ae865e3874fe
2015-03-20 15:12:17 +11:00
Kearwood (Kip) Gilbert bcb7c7d431 Bug 969250 - Part 1: Implement scroll snapping for scrollbars (v5 Patch). r=roc
--HG--
extra : rebase_source : df2b831d2cad8210b6c92122aa701fc21335ae6d
2015-03-03 17:40:00 +01:00
Xidorn Quan 3bddba82c5 Bug 1141842 - Add LastOptionalBreakPriority to nsLineLayout to simplify some code. r=roc
--HG--
extra : source : 99f9967c5eef6b1d032ae0b3b778a06b28e21d07
2015-03-11 14:14:48 +11:00
Xidorn Quan e89adacefb Bug 1140264 part 3 - Rename IsInlineDescendantOfRuby to ShouldSuppressLineBreak and exclude rbc/rtc from it. r=dbaron
--HG--
extra : rebase_source : b782506792fd47e41c694a49fca3967282c96113
extra : source : 9836c81fe7d401432856491dc65c38b150e5e157
2015-03-11 10:28:21 +11:00
Xidorn Quan b5e5ccaa5b Bug 1140264 part 2 - Move and merge line breaking code in rbc reflow to reduce useless computation and fix undesired break point. r=dbaron
--HG--
extra : rebase_source : 16081f365a95f7ca2abaf9e42abb70cc37193a90
extra : source : 9b63131b3248015451e9fd12f18da327d5a7267c
2015-03-11 10:28:21 +11:00
Xidorn Quan 8d078dffee Bug 1140264 part 1 - Avoid expanding auto-hidden ruby annotations. r=dbaron
This could sometimes cause undesired overflow area.

--HG--
extra : rebase_source : e06898d983a9c49a7332e4be5649142ffa49eb24
extra : source : 59cffbcfda7e6d8167ff663c9c7da133fbf95346
2015-03-11 10:28:21 +11:00
Jonathan Kew eda6f033e5 Bug 1138495 - pt 3 - Compute font inflation based on inline-axis dimensions rather than always using physical width. r=smontagu 2015-03-10 14:28:23 +00:00
Jonathan Kew f5b4780e94 Bug 1138495 - pt 1 - Rename NS_FRAME_IN_CONSTRAINED_HEIGHT flag to NS_FRAME_IN_CONSTRAINED_BSIZE, and set it appropriately according to writing mode. r=smontagu 2015-03-10 14:28:23 +00:00
Xidorn Quan 4407f03467 Bug 1130891 part 3 - Add param to HTMLCopy to allow copy with ruby annotation. r=smaug
--HG--
extra : source : 57de10711eec392abda832e0df2b4186881180b0
2015-03-10 17:11:55 +11:00
Xidorn Quan d4289c7714 Bug 1139283 - Move some properties from nsStyleDisplay to nsStylePosition. r=dbaron
The moved properties are:
* clip
* transform-style
* transform-origin
* backface-visibility
* perspective
* perspective-origin
* will-change

--HG--
extra : source : 42bbf0328b450d1094250159fe9f7f0d07622290
2015-03-08 18:43:22 +11:00
L. David Baron 10fa0b3d2f Bug 1140486 patch 2 - Make nsTextFrame::UpdateOverflow include the visual overflow from the text metrics by calling existing RecomputeOverflow. r=jfkthame
UpdateOverflow and RecomputeOverflow need to remain two separate
functions since RecomputeOverflow is called from line layout, prior to
setting the overflow areas, whereas UpdateOverflow needs to reset the
overflow areas and (via its return value) propagate the change to
ancestors.  However, they should share more code than they do today.

The only substantive (non-error-handling) change this is making is that
it's adding the MeasureText call, manipulation of the resulting
boundingBox, and inclusion of that bounding box in the visual overflow.
This is exactly the change that I'm trying to make in this bug.

It's also changing the error handling if EnsureTextRun returns null, but
I don't think we need to worry about that case much.
2015-03-07 12:27:36 -08:00
L. David Baron 0d0b0e8f2d Bug 1140486 patch 1 - Pass block frame instead of block reflow state to nsTextFrame::RecomputeOverflow. r=jfkthame
This allows calling it from UpdateOverflow in patch 2.
2015-03-07 12:27:36 -08:00