Pass fragmentainer capacity to fragmentation util functions.

The idea here is that the constraint space won't always know the correct
amount of space available, if box decorations are to be cloned (yet to
be landed). Although the fragment builder will know the size, the
fragment builder isn't always available (e.g. with floats laid out from
the inline layout algorithm) at every call site. And this is a good
thing, since we sometimes want to consult the fragmentation machinery
without any side-effects.

No behavior changes intended.

Bug: 40415661
Change-Id: Ieba4c34f14b3d519b9bdf73d725b0c6d87832e67
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5695070
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1326620}
NOKEYCHECK=True
GitOrigin-RevId: 2097a70d9cdce8e43e6d3ebec9e0d15baca19ccb
9 files changed
tree: 95419d9f4e4a2630d1e2b066b36c0f3b5a41f613
  1. abseil-cpp/
  2. accessibility-audit/
  3. accessibility_test_framework/
  4. afl/
  5. alsa/
  6. android_build_tools/
  7. android_deps/
  8. android_deps_autorolled/
  9. android_media/
  10. android_opengl/
  11. android_platform/
  12. android_prebuilts/
  13. android_protoc/
  14. android_provider/
  15. android_sdk/
  16. android_swipe_refresh/
  17. android_system_sdk/
  18. android_toolchain/
  19. android_toolchain_canary/
  20. androidx/
  21. androidx_javascriptengine/
  22. anonymous_tokens/
  23. aosp_dalvik/
  24. apache-portable-runtime/
  25. apache-win32/
  26. apple_apsl/
  27. arcore-android-sdk/
  28. arcore-android-sdk-client/
  29. ashmem/
  30. axe-core/
  31. beto-core/
  32. bidimapper/
  33. blink/
  34. boringssl/
  35. breakpad/
  36. brotli/
  37. bspatch/
  38. byte_buddy/
  39. cardboard/
  40. cast_core/
  41. ced/
  42. checkstyle/
  43. chevron/
  44. chromevox/
  45. cld_3/
  46. cldr/
  47. closure_compiler/
  48. cloud_authenticator/
  49. colorama/
  50. content_analysis_sdk/
  51. coremltools/
  52. cpu_features/
  53. cpuinfo/
  54. crabbyavif/
  55. crashpad/
  56. crc32c/
  57. cronet_android_mainline_clang/
  58. cros-components/
  59. crubit/
  60. d3/
  61. dav1d/
  62. dbus/
  63. decklink/
  64. devscripts/
  65. devtools-frontend/
  66. distributed_point_functions/
  67. dom_distiller_js/
  68. dpkg-shlibdeps/
  69. eigen3/
  70. emoji-metadata/
  71. emoji-segmenter/
  72. expat/
  73. farmhash/
  74. fdlibm/
  75. fft2d/
  76. flatbuffers/
  77. flex/
  78. fontconfig/
  79. fp16/
  80. freetype/
  81. freetype-testing/
  82. fuchsia-gn-sdk/
  83. fuchsia-sdk/
  84. fusejs/
  85. fuzztest/
  86. fxdiv/
  87. gemmlowp/
  88. gif_player/
  89. glfw/
  90. glslang/
  91. google-closure-library/
  92. google-java-format/
  93. google-truth/
  94. google_benchmark/
  95. google_input_tools/
  96. google_toolbox_for_mac/
  97. google_trust_services/
  98. googlefonts_testdata/
  99. googletest/
  100. gradle_wrapper/
  101. grpc/
  102. grpc-java/
  103. hamcrest/
  104. harfbuzz-ng/
  105. highway/
  106. hunspell/
  107. hyphenation-patterns/
  108. iaccessible2/
  109. iccjpeg/
  110. icu4j/
  111. ijar/
  112. inspector_protocol/
  113. ipcz/
  114. isimpledom/
  115. jacoco/
  116. javalang/
  117. jdk/
  118. jdk11/
  119. jinja2/
  120. jni_zero/
  121. js_code_coverage/
  122. jsoncpp/
  123. jstemplate/
  124. jszip/
  125. junit/
  126. khronos/
  127. kotlin_stdlib/
  128. kotlinc/
  129. lcov/
  130. lens_server_proto/
  131. leveldatabase/
  132. libaddressinput/
  133. libaom/
  134. libavif/
  135. libavifinfo/
  136. libbrlapi/
  137. libc++/
  138. libc++abi/
  139. libdrm/
  140. libei/
  141. libevent/
  142. libFuzzer/
  143. libgav1/
  144. libipp/
  145. libjingle_xmpp/
  146. liblouis/
  147. libphonenumber/
  148. libpng/
  149. libprotobuf-mutator/
  150. libsecret/
  151. libsync/
  152. libudev/
  153. libunwind/
  154. liburlpattern/
  155. libusb/
  156. libva_protected_content/
  157. libvpx/
  158. libwebm/
  159. libwebp/
  160. libx11/
  161. libxcb-keysyms/
  162. libxml/
  163. libxslt/
  164. libzip/
  165. lit/
  166. logdog/
  167. logilab/
  168. lottie/
  169. lzma_sdk/
  170. mako/
  171. markdown/
  172. markupsafe/
  173. material_color_utilities/
  174. material_design_icons/
  175. material_web_components/
  176. maven/
  177. mediapipe/
  178. mesa_headers/
  179. metrics_proto/
  180. microsoft_dxheaders/
  181. microsoft_webauthn/
  182. mig/
  183. minigbm/
  184. mockito/
  185. modp_b64/
  186. motemplate/
  187. nearby/
  188. neon_2_sse/
  189. netty-tcnative/
  190. netty4/
  191. node/
  192. nyx-packer/
  193. objenesis/
  194. ocmock/
  195. omnibox_proto/
  196. one_euro_filter/
  197. openh264/
  198. openscreen/
  199. openxr/
  200. opus/
  201. ots/
  202. pefile_py3/
  203. pexpect/
  204. pffft/
  205. pipewire/
  206. pipewire-media-session/
  207. ply/
  208. polymer/
  209. private-join-and-compute/
  210. private_membership/
  211. protobuf/
  212. protobuf-javascript/
  213. pthreadpool/
  214. puffin/
  215. pycoverage/
  216. pyjson5/
  217. pylint/
  218. pywebsocket3/
  219. pyyaml/
  220. qcms/
  221. quic_trace/
  222. qunit/
  223. r8/
  224. re2/
  225. requests/
  226. rjsmin/
  227. rnnoise/
  228. robolectric/
  229. rust/
  230. ruy/
  231. s2cellid/
  232. screen-ai/
  233. securemessage/
  234. selenium-atoms/
  235. sentencepiece/
  236. shell-encryption/
  237. simplejson/
  238. sinonjs/
  239. siso/
  240. six/
  241. smhasher/
  242. snappy/
  243. speech-dispatcher/
  244. speedometer/
  245. spirv-cross/
  246. spirv-headers/
  247. spirv-tools/
  248. sqlite/
  249. sqlite4java/
  250. subresource-filter-ruleset/
  251. sudden_motion_sensor/
  252. swift-toolchain/
  253. tensorflow-text/
  254. tensorflow_models/
  255. test_fonts/
  256. text-fragments-polyfill/
  257. tfhub_models/
  258. tflite/
  259. tflite_support/
  260. turbine/
  261. ukey2/
  262. unrar/
  263. updater/
  264. usb_ids/
  265. utf/
  266. v4l-utils/
  267. vulkan-headers/
  268. vulkan-loader/
  269. vulkan-tools/
  270. vulkan-utility-libraries/
  271. vulkan-validation-layers/
  272. wayland/
  273. wayland-protocols/
  274. webdriver/
  275. webgl/
  276. webgpu-cts/
  277. webpagereplay/
  278. webrtc_overrides/
  279. webxr_test_pages/
  280. weston/
  281. widevine/
  282. win_build_output/
  283. win_virtual_display/
  284. wlcs/
  285. woff2/
  286. wpt_tools/
  287. wtl/
  288. wuffs/
  289. x11proto/
  290. xcbproto/
  291. xnnpack/
  292. zlib/
  293. zstd/
  294. zxcvbn-cpp/
  295. .gitignore
  296. BUILD.gn
  297. DEPS
  298. libjpeg.gni
  299. OWNERS
  300. PRESUBMIT.py
  301. README.chromium.template
  302. README.md
README.md

The third_party directory contains sources from other projects.

For guidelines on adding a new package to the third_party directory can be found at //docs/adding_to_third_party.md