forked from AuroraMiddleware/gtk
Revert "sizerequest: Only check reported baselines if requested"
This reverts commit cf7fa931d3
.
We store the baseline in the cache and we do not know if baselines might
be queried in the future. So always store them.
No reftest because I don't know how to write one.
premature optimization == √😈
This commit is contained in:
parent
129042425d
commit
b004706009
@ -139,7 +139,6 @@ gtk_widget_query_size_for_orientation (GtkWidget *widget,
|
||||
int *minimum_baseline,
|
||||
int *natural_baseline)
|
||||
{
|
||||
const gboolean baselines_requested = (minimum_baseline != NULL || natural_baseline != NULL);
|
||||
SizeRequestCache *cache;
|
||||
int min_size = 0;
|
||||
int nat_size = 0;
|
||||
@ -361,7 +360,7 @@ gtk_widget_query_size_for_orientation (GtkWidget *widget,
|
||||
nat_size = adjusted_natural;
|
||||
}
|
||||
|
||||
if (baselines_requested && (min_baseline != -1 || nat_baseline != -1))
|
||||
if (min_baseline != -1 || nat_baseline != -1)
|
||||
{
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user