Home
last modified time | relevance | path

Searched refs:child_allocation (Results 1 – 3 of 3) sorted by relevance

/external/chromium/chrome/browser/ui/gtk/
Dgtk_expanded_container.cc52 GtkAllocation child_allocation; in ChildSizeAllocate() local
53 child_allocation.width = child_requisition.width; in ChildSizeAllocate()
54 child_allocation.height = child_requisition.height; in ChildSizeAllocate()
55 if (child_allocation.width < 0 || child_allocation.height < 0) { in ChildSizeAllocate()
57 if (child_allocation.width < 0) in ChildSizeAllocate()
58 child_allocation.width = child_requisition.width; in ChildSizeAllocate()
59 if (child_allocation.height < 0) in ChildSizeAllocate()
60 child_allocation.height = child_requisition.height; in ChildSizeAllocate()
66 child_allocation.x = x + data->border_width; in ChildSizeAllocate()
67 child_allocation.y = y + data->border_width; in ChildSizeAllocate()
[all …]
Dgtk_chrome_shrinkable_hbox.cc54 GtkAllocation child_allocation = child->allocation; in ChildSizeAllocate() local
58 if (child_allocation.width > data->homogeneous_child_width) { in ChildSizeAllocate()
59 child_allocation.x += in ChildSizeAllocate()
60 (child_allocation.width - data->homogeneous_child_width) / 2; in ChildSizeAllocate()
61 child_allocation.width = data->homogeneous_child_width; in ChildSizeAllocate()
74 child_allocation.x); in ChildSizeAllocate()
76 child_allocation.width -= overflow; in ChildSizeAllocate()
77 child_allocation.x += overflow; in ChildSizeAllocate()
82 int overflow = (child_allocation.x + child_allocation.width + padding - in ChildSizeAllocate()
85 child_allocation.width -= overflow; in ChildSizeAllocate()
[all …]
Dgtk_floating_container.cc232 GtkAllocation child_allocation; in gtk_floating_container_size_allocate() local
241 child_allocation.x = allocation->x + child->x; in gtk_floating_container_size_allocate()
242 child_allocation.y = allocation->y + child->y; in gtk_floating_container_size_allocate()
243 child_allocation.width = std::max(1, std::min(child_requisition.width, in gtk_floating_container_size_allocate()
245 child_allocation.height = std::max(1, std::min(child_requisition.height, in gtk_floating_container_size_allocate()
247 gtk_widget_size_allocate(child->widget, &child_allocation); in gtk_floating_container_size_allocate()