blob: c3d109daed62050be3f023d1ad5a8ff8d069c3c0 [file] [log] [blame]
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/blink/renderer/core/core.gni")
blink_core_sources("layout") {
split_count = 5
sources = [
"api/hit_test_action.h",
"api/line_layout_api_shim.h",
"api/line_layout_block_flow.h",
"api/line_layout_box.h",
"api/line_layout_box_model.h",
"api/line_layout_br.h",
"api/line_layout_inline.h",
"api/line_layout_item.h",
"api/line_layout_list_marker.h",
"api/line_layout_ruby_base.h",
"api/line_layout_ruby_run.h",
"api/line_layout_ruby_text.h",
"api/line_layout_svg_inline.h",
"api/line_layout_svg_inline_text.h",
"api/line_layout_svg_text_path.h",
"api/line_layout_text.h",
"api/line_layout_text_combine.h",
"api/selection_state.cc",
"api/selection_state.h",
"background_bleed_avoidance.h",
"bidi_run.h",
"bidi_run_for_line.cc",
"bidi_run_for_line.h",
"collapsed_border_value.cc",
"collapsed_border_value.h",
"column_balancer.cc",
"column_balancer.h",
"content_change_type.h",
"counter_node.cc",
"counter_node.h",
"custom/css_layout_definition.cc",
"custom/css_layout_definition.h",
"custom/css_layout_worklet.cc",
"custom/css_layout_worklet.h",
"custom/custom_layout_child.cc",
"custom/custom_layout_child.h",
"custom/custom_layout_constraints.cc",
"custom/custom_layout_constraints.h",
"custom/custom_layout_fragment.cc",
"custom/custom_layout_fragment.h",
"custom/custom_layout_fragment_request.cc",
"custom/custom_layout_fragment_request.h",
"custom/document_layout_definition.cc",
"custom/document_layout_definition.h",
"custom/layout_custom.cc",
"custom/layout_custom.h",
"custom/layout_worklet.cc",
"custom/layout_worklet.h",
"custom/layout_worklet_global_scope.cc",
"custom/layout_worklet_global_scope.h",
"custom/layout_worklet_global_scope_proxy.cc",
"custom/layout_worklet_global_scope_proxy.h",
"custom/pending_layout_registry.cc",
"custom/pending_layout_registry.h",
"depth_ordered_layout_object_list.cc",
"depth_ordered_layout_object_list.h",
"flexible_box_algorithm.cc",
"flexible_box_algorithm.h",
"floating_objects.cc",
"floating_objects.h",
"fragmentainer_iterator.cc",
"fragmentainer_iterator.h",
"fragmentation_context.h",
"generated_children.h",
"grid.cc",
"grid.h",
"grid_baseline_alignment.cc",
"grid_baseline_alignment.h",
"grid_layout_utils.cc",
"grid_layout_utils.h",
"grid_track_sizing_algorithm.cc",
"grid_track_sizing_algorithm.h",
"hit_test_cache.cc",
"hit_test_cache.h",
"hit_test_canvas_result.cc",
"hit_test_canvas_result.h",
"hit_test_location.cc",
"hit_test_location.h",
"hit_test_request.h",
"hit_test_result.cc",
"hit_test_result.h",
"hit_testing_transform_state.cc",
"hit_testing_transform_state.h",
"intersection_geometry.cc",
"intersection_geometry.h",
"intrinsic_sizing_info.h",
"jank_region.cc",
"jank_region.h",
"jank_tracker.cc",
"jank_tracker.h",
"layout_analyzer.cc",
"layout_analyzer.h",
"layout_block.cc",
"layout_block.h",
"layout_block_flow.cc",
"layout_block_flow.h",
"layout_block_flow_line.cc",
"layout_box.cc",
"layout_box.h",
"layout_box_model_object.cc",
"layout_box_model_object.h",
"layout_br.cc",
"layout_br.h",
"layout_button.cc",
"layout_button.h",
"layout_counter.cc",
"layout_counter.h",
"layout_deprecated_flexible_box.cc",
"layout_deprecated_flexible_box.h",
"layout_details_marker.cc",
"layout_details_marker.h",
"layout_embedded_content.cc",
"layout_embedded_content.h",
"layout_embedded_object.cc",
"layout_embedded_object.h",
"layout_fieldset.cc",
"layout_fieldset.h",
"layout_file_upload_control.cc",
"layout_file_upload_control.h",
"layout_flexible_box.cc",
"layout_flexible_box.h",
"layout_flow_thread.cc",
"layout_flow_thread.h",
"layout_frame.cc",
"layout_frame.h",
"layout_frame_set.cc",
"layout_frame_set.h",
"layout_geometry_map.cc",
"layout_geometry_map.h",
"layout_geometry_map_step.h",
"layout_grid.cc",
"layout_grid.h",
"layout_html_canvas.cc",
"layout_html_canvas.h",
"layout_iframe.cc",
"layout_iframe.h",
"layout_image.cc",
"layout_image.h",
"layout_image_resource.cc",
"layout_image_resource.h",
"layout_image_resource_style_image.cc",
"layout_image_resource_style_image.h",
"layout_inline.cc",
"layout_inline.h",
"layout_list_box.cc",
"layout_list_box.h",
"layout_list_item.cc",
"layout_list_item.h",
"layout_list_marker.cc",
"layout_list_marker.h",
"layout_media.cc",
"layout_media.h",
"layout_menu_list.cc",
"layout_menu_list.h",
"layout_multi_column_flow_thread.cc",
"layout_multi_column_flow_thread.h",
"layout_multi_column_set.cc",
"layout_multi_column_set.h",
"layout_multi_column_spanner_placeholder.cc",
"layout_multi_column_spanner_placeholder.h",
"layout_object.cc",
"layout_object.h",
"layout_object_child_list.cc",
"layout_object_child_list.h",
"layout_object_factory.cc",
"layout_object_factory.h",
"layout_object_inlines.h",
"layout_paged_flow_thread.cc",
"layout_paged_flow_thread.h",
"layout_progress.cc",
"layout_progress.h",
"layout_quote.cc",
"layout_quote.h",
"layout_replaced.cc",
"layout_replaced.h",
"layout_ruby.cc",
"layout_ruby.h",
"layout_ruby_base.cc",
"layout_ruby_base.h",
"layout_ruby_run.cc",
"layout_ruby_run.h",
"layout_ruby_text.cc",
"layout_ruby_text.h",
"layout_scrollbar.cc",
"layout_scrollbar.h",
"layout_scrollbar_part.cc",
"layout_scrollbar_part.h",
"layout_scrollbar_theme.cc",
"layout_scrollbar_theme.h",
"layout_search_field.cc",
"layout_search_field.h",
"layout_slider.cc",
"layout_slider.h",
"layout_slider_container.cc",
"layout_slider_container.h",
"layout_state.cc",
"layout_state.h",
"layout_table.cc",
"layout_table.h",
"layout_table_box_component.cc",
"layout_table_box_component.h",
"layout_table_caption.cc",
"layout_table_caption.h",
"layout_table_cell.cc",
"layout_table_cell.h",
"layout_table_col.cc",
"layout_table_col.h",
"layout_table_row.cc",
"layout_table_row.h",
"layout_table_section.cc",
"layout_table_section.h",
"layout_text.cc",
"layout_text.h",
"layout_text_combine.cc",
"layout_text_combine.h",
"layout_text_control.cc",
"layout_text_control.h",
"layout_text_control_multi_line.cc",
"layout_text_control_multi_line.h",
"layout_text_control_single_line.cc",
"layout_text_control_single_line.h",
"layout_text_fragment.cc",
"layout_text_fragment.h",
"layout_theme.cc",
"layout_theme.h",
"layout_theme_default.cc",
"layout_theme_default.h",
"layout_theme_font_provider.cc",
"layout_theme_font_provider.h",
"layout_theme_mac.h",
"layout_theme_mac.mm",
"layout_theme_mobile.cc",
"layout_theme_mobile.h",
"layout_tree_as_text.cc",
"layout_tree_as_text.h",
"layout_video.cc",
"layout_video.h",
"layout_view.cc",
"layout_view.h",
"layout_vtt_cue.cc",
"layout_vtt_cue.h",
"layout_word_break.cc",
"layout_word_break.h",
"line/abstract_inline_text_box.cc",
"line/abstract_inline_text_box.h",
"line/breaking_context.cc",
"line/breaking_context_inline_headers.h",
"line/ellipsis_box.cc",
"line/ellipsis_box.h",
"line/glyph_overflow.h",
"line/inline_box.cc",
"line/inline_box.h",
"line/inline_flow_box.cc",
"line/inline_flow_box.h",
"line/inline_iterator.h",
"line/inline_text_box.cc",
"line/inline_text_box.h",
"line/layout_text_info.h",
"line/line_box_list.cc",
"line/line_box_list.h",
"line/line_breaker.cc",
"line/line_breaker.h",
"line/line_info.h",
"line/line_layout_state.h",
"line/line_orientation_utils.cc",
"line/line_orientation_utils.h",
"line/line_width.cc",
"line/line_width.h",
"line/root_inline_box.cc",
"line/root_inline_box.h",
"line/trailing_objects.cc",
"line/trailing_objects.h",
"line/word_measurement.h",
"list_marker_text.cc",
"list_marker_text.h",
"logical_values.cc",
"logical_values.h",
"map_coordinates_flags.h",
"min_max_size.cc",
"min_max_size.h",
"multi_column_fragmentainer_group.cc",
"multi_column_fragmentainer_group.h",
"ng/exclusions/ng_exclusion.cc",
"ng/exclusions/ng_exclusion.h",
"ng/exclusions/ng_exclusion_space.cc",
"ng/exclusions/ng_exclusion_space.h",
"ng/exclusions/ng_layout_opportunity.cc",
"ng/exclusions/ng_layout_opportunity.h",
"ng/exclusions/ng_line_layout_opportunity.h",
"ng/exclusions/ng_shape_exclusions.h",
"ng/geometry/ng_bfc_offset.cc",
"ng/geometry/ng_bfc_offset.h",
"ng/geometry/ng_bfc_rect.cc",
"ng/geometry/ng_bfc_rect.h",
"ng/geometry/ng_border_edges.cc",
"ng/geometry/ng_border_edges.h",
"ng/geometry/ng_box_strut.cc",
"ng/geometry/ng_box_strut.h",
"ng/geometry/ng_logical_offset.cc",
"ng/geometry/ng_logical_offset.h",
"ng/geometry/ng_logical_rect.cc",
"ng/geometry/ng_logical_rect.h",
"ng/geometry/ng_logical_size.cc",
"ng/geometry/ng_logical_size.h",
"ng/geometry/ng_margin_strut.cc",
"ng/geometry/ng_margin_strut.h",
"ng/geometry/ng_physical_location.cc",
"ng/geometry/ng_physical_location.h",
"ng/geometry/ng_physical_offset.cc",
"ng/geometry/ng_physical_offset.h",
"ng/geometry/ng_physical_offset_rect.cc",
"ng/geometry/ng_physical_offset_rect.h",
"ng/geometry/ng_physical_rect.cc",
"ng/geometry/ng_physical_rect.h",
"ng/geometry/ng_physical_size.cc",
"ng/geometry/ng_physical_size.h",
"ng/geometry/ng_static_position.cc",
"ng/geometry/ng_static_position.h",
"ng/inline/empty_offset_mapping_builder.h",
"ng/inline/layout_ng_text.h",
"ng/inline/layout_ng_text_fragment.h",
"ng/inline/ng_abstract_inline_text_box.cc",
"ng/inline/ng_abstract_inline_text_box.h",
"ng/inline/ng_baseline.cc",
"ng/inline/ng_baseline.h",
"ng/inline/ng_bidi_paragraph.cc",
"ng/inline/ng_bidi_paragraph.h",
"ng/inline/ng_caret_position.cc",
"ng/inline/ng_caret_position.h",
"ng/inline/ng_caret_rect.cc",
"ng/inline/ng_caret_rect.h",
"ng/inline/ng_inline_box_state.cc",
"ng/inline/ng_inline_box_state.h",
"ng/inline/ng_inline_break_token.cc",
"ng/inline/ng_inline_break_token.h",
"ng/inline/ng_inline_child_layout_context.cc",
"ng/inline/ng_inline_child_layout_context.h",
"ng/inline/ng_inline_fragment_traversal.cc",
"ng/inline/ng_inline_fragment_traversal.h",
"ng/inline/ng_inline_item.cc",
"ng/inline/ng_inline_item.h",
"ng/inline/ng_inline_item_result.cc",
"ng/inline/ng_inline_item_result.h",
"ng/inline/ng_inline_items.h",
"ng/inline/ng_inline_items_builder.cc",
"ng/inline/ng_inline_items_builder.h",
"ng/inline/ng_inline_layout_algorithm.cc",
"ng/inline/ng_inline_layout_algorithm.h",
"ng/inline/ng_inline_node.cc",
"ng/inline/ng_inline_node.h",
"ng/inline/ng_inline_node_data.cc",
"ng/inline/ng_inline_node_data.h",
"ng/inline/ng_line_box_fragment.cc",
"ng/inline/ng_line_box_fragment.h",
"ng/inline/ng_line_box_fragment_builder.cc",
"ng/inline/ng_line_box_fragment_builder.h",
"ng/inline/ng_line_breaker.cc",
"ng/inline/ng_line_breaker.h",
"ng/inline/ng_line_height_metrics.cc",
"ng/inline/ng_line_height_metrics.h",
"ng/inline/ng_line_truncator.cc",
"ng/inline/ng_line_truncator.h",
"ng/inline/ng_line_utils.cc",
"ng/inline/ng_line_utils.h",
"ng/inline/ng_offset_mapping.cc",
"ng/inline/ng_offset_mapping.h",
"ng/inline/ng_offset_mapping_builder.cc",
"ng/inline/ng_offset_mapping_builder.h",
"ng/inline/ng_physical_line_box_fragment.cc",
"ng/inline/ng_physical_line_box_fragment.h",
"ng/inline/ng_physical_text_fragment.cc",
"ng/inline/ng_physical_text_fragment.h",
"ng/inline/ng_text_fragment.cc",
"ng/inline/ng_text_fragment.h",
"ng/inline/ng_text_fragment_builder.cc",
"ng/inline/ng_text_fragment_builder.h",
"ng/layout_ng_block_flow.cc",
"ng/layout_ng_block_flow.h",
"ng/layout_ng_fieldset.cc",
"ng/layout_ng_fieldset.h",
"ng/layout_ng_flexible_box.cc",
"ng/layout_ng_flexible_box.h",
"ng/layout_ng_mixin.cc",
"ng/layout_ng_mixin.h",
"ng/layout_ng_table_caption.cc",
"ng/layout_ng_table_caption.h",
"ng/layout_ng_table_cell.cc",
"ng/layout_ng_table_cell.h",
"ng/legacy_layout_tree_walking.cc",
"ng/legacy_layout_tree_walking.h",
"ng/list/layout_ng_list_item.cc",
"ng/list/layout_ng_list_item.h",
"ng/list/layout_ng_list_marker.cc",
"ng/list/layout_ng_list_marker.h",
"ng/list/layout_ng_list_marker_image.cc",
"ng/list/layout_ng_list_marker_image.h",
"ng/list/ng_unpositioned_list_marker.cc",
"ng/list/ng_unpositioned_list_marker.h",
"ng/ng_absolute_utils.cc",
"ng/ng_absolute_utils.h",
"ng/ng_block_break_token.cc",
"ng/ng_block_break_token.h",
"ng/ng_block_child_iterator.cc",
"ng/ng_block_child_iterator.h",
"ng/ng_block_layout_algorithm.cc",
"ng/ng_block_layout_algorithm.h",
"ng/ng_block_node.cc",
"ng/ng_block_node.h",
"ng/ng_box_fragment.cc",
"ng/ng_box_fragment.h",
"ng/ng_box_fragment_builder.cc",
"ng/ng_box_fragment_builder.h",
"ng/ng_break_token.cc",
"ng/ng_break_token.h",
"ng/ng_column_layout_algorithm.cc",
"ng/ng_column_layout_algorithm.h",
"ng/ng_constraint_space.cc",
"ng/ng_constraint_space.h",
"ng/ng_constraint_space_builder.cc",
"ng/ng_constraint_space_builder.h",
"ng/ng_container_fragment_builder.cc",
"ng/ng_container_fragment_builder.h",
"ng/ng_fieldset_layout_algorithm.cc",
"ng/ng_fieldset_layout_algorithm.h",
"ng/ng_flex_layout_algorithm.cc",
"ng/ng_flex_layout_algorithm.h",
"ng/ng_floats_utils.cc",
"ng/ng_floats_utils.h",
"ng/ng_fragment.h",
"ng/ng_fragment_builder.h",
"ng/ng_fragmentation_utils.cc",
"ng/ng_fragmentation_utils.h",
"ng/ng_layout_algorithm.h",
"ng/ng_layout_input_node.cc",
"ng/ng_layout_input_node.h",
"ng/ng_layout_result.cc",
"ng/ng_layout_result.h",
"ng/ng_layout_utils.cc",
"ng/ng_layout_utils.h",
"ng/ng_length_utils.cc",
"ng/ng_length_utils.h",
"ng/ng_link.h",
"ng/ng_out_of_flow_layout_part.cc",
"ng/ng_out_of_flow_layout_part.h",
"ng/ng_out_of_flow_positioned_descendant.h",
"ng/ng_outline_type.h",
"ng/ng_outline_utils.cc",
"ng/ng_outline_utils.h",
"ng/ng_page_layout_algorithm.cc",
"ng/ng_page_layout_algorithm.h",
"ng/ng_physical_box_fragment.cc",
"ng/ng_physical_box_fragment.h",
"ng/ng_physical_container_fragment.cc",
"ng/ng_physical_container_fragment.h",
"ng/ng_physical_fragment.cc",
"ng/ng_physical_fragment.h",
"ng/ng_positioned_float.h",
"ng/ng_relative_utils.cc",
"ng/ng_relative_utils.h",
"ng/ng_space_utils.cc",
"ng/ng_space_utils.h",
"ng/ng_text_decoration_offset.cc",
"ng/ng_text_decoration_offset.h",
"ng/ng_unpositioned_float.h",
"ng/ng_unpositioned_float_vector.h",
"order_iterator.cc",
"order_iterator.h",
"overflow_model.h",
"pointer_events_hit_rules.cc",
"pointer_events_hit_rules.h",
"scroll_anchor.cc",
"scroll_anchor.h",
"shapes/box_shape.cc",
"shapes/box_shape.h",
"shapes/polygon_shape.cc",
"shapes/polygon_shape.h",
"shapes/raster_shape.cc",
"shapes/raster_shape.h",
"shapes/rectangle_shape.cc",
"shapes/rectangle_shape.h",
"shapes/shape.cc",
"shapes/shape.h",
"shapes/shape_interval.h",
"shapes/shape_outside_info.cc",
"shapes/shape_outside_info.h",
"subtree_layout_scope.cc",
"subtree_layout_scope.h",
"svg/line/svg_inline_flow_box.cc",
"svg/line/svg_inline_flow_box.h",
"svg/line/svg_inline_text_box.cc",
"svg/line/svg_inline_text_box.h",
"svg/line/svg_root_inline_box.cc",
"svg/line/svg_root_inline_box.h",
"table_grid_cell.cc",
"table_grid_cell.h",
"table_layout_algorithm.h",
"table_layout_algorithm_auto.cc",
"table_layout_algorithm_auto.h",
"table_layout_algorithm_fixed.cc",
"table_layout_algorithm_fixed.h",
"text_autosizer.cc",
"text_autosizer.h",
"text_decoration_offset.cc",
"text_decoration_offset.h",
"text_decoration_offset_base.cc",
"text_decoration_offset_base.h",
"text_run_constructor.cc",
"text_run_constructor.h",
"traced_layout_object.cc",
"traced_layout_object.h",
"vertical_position_cache.h",
"view_fragmentation_context.cc",
"view_fragmentation_context.h",
]
if (is_win) {
sources += [
"layout_theme_font_provider_win.cc",
"layout_theme_win.cc",
"layout_theme_win.h",
"web_font_rendering_win.cc",
]
} else { # Not Windows.
sources += [ "layout_theme_font_provider_default.cc" ]
}
if (is_linux) {
sources += [
"layout_theme_linux.cc",
"layout_theme_linux.h",
]
}
if (is_android) {
sources += [
"layout_theme_android.cc",
"layout_theme_android.h",
]
}
if (is_fuchsia) {
sources += [ "layout_theme_fuchsia.cc" ]
}
}