gfx/cairo/win32-canvas-glyph-position.patch

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 diff --git a/gfx/cairo/cairo/src/cairo-win32-font.c b/gfx/cairo/cairo/src/cairo-win32-font.c
michael@0 2 --- a/gfx/cairo/cairo/src/cairo-win32-font.c
michael@0 3 +++ b/gfx/cairo/cairo/src/cairo-win32-font.c
michael@0 4 @@ -1182,22 +1182,22 @@ _add_glyph (cairo_glyph_state_t *state,
michael@0 5 if (state->glyphs.num_elements > 0) {
michael@0 6 int dx;
michael@0 7
michael@0 8 if (logical_y != state->last_y) {
michael@0 9 status = _flush_glyphs (state);
michael@0 10 if (status)
michael@0 11 return status;
michael@0 12 state->start_x = logical_x;
michael@0 13 + } else {
michael@0 14 + dx = logical_x - state->last_x;
michael@0 15 + status = _cairo_array_append (&state->dx, &dx);
michael@0 16 + if (status)
michael@0 17 + return status;
michael@0 18 }
michael@0 19 -
michael@0 20 - dx = logical_x - state->last_x;
michael@0 21 - status = _cairo_array_append (&state->dx, &dx);
michael@0 22 - if (status)
michael@0 23 - return status;
michael@0 24 } else {
michael@0 25 state->start_x = logical_x;
michael@0 26 }
michael@0 27
michael@0 28 state->last_x = logical_x;
michael@0 29 state->last_y = logical_y;
michael@0 30
michael@0 31 status = _cairo_array_append (&state->glyphs, &glyph_index);

mercurial