Bug 717178. Part 1: Don't crash when passing a nil scaled-font to _name_tables_match. r=jfkthame

--HG--
extra : rebase_source : ba6ada662a871fbf3bdd2ee3b2a8f031fd213e4b
Bug 717178. Part 2: Import changesets eb29a25d, 6e3e3291 and 101fab7c from upstream. r=jrmuizel
======

From eb29a25dd6dddc511388bf883c9b95843ecdb823 Mon Sep 17 00:00:00 2001
From: Adrian Johnson <ajohnson@redneon.com>
Date: Tue, 16 Nov 2010 13:18:39 +0000
Subject: win32: Use a font_face hash table to provide unique font faces

Similar to the freetype and toy font backends, use a hash table
to map logfont,hfont to font faces.

This fixes the multiple embedding of the same font in PDF.

https://bugs.freedesktop.org/show_bug.cgi?id=24849

======

From 6e3e329170ab4b96bc0d587c8071e869e228e758 Mon Sep 17 00:00:00 2001
From: Adrian Johnson <ajohnson@redneon.com>
Date: Thu, 18 Nov 2010 12:37:45 +0000
Subject: win32: fix font_face hashing

some bugs were discovered while testing with firefox

======

From 101fab7cd8a90f7cf3d8113c792b3f8c2a9afb7d Mon Sep 17 00:00:00 2001
From: Andrea Canciani <ranma42@gmail.com>
Date: Wed, 15 Jun 2011 09:37:36 +0000
Subject: win32-font: Improve static data reset function

The hashtable is guaranteed to only contain font faces which are
currently referenced, hence there is no need to remove any font face
when it is reset (just like for toy-font).

This makes the function simpler and fixes the assertion

Assertion failed: predicate != NULL, file cairo-hash.c, line 373

hit by multiple tests (the first one being "clear").

See https://bugs.freedesktop.org/show_bug.cgi?id=38049

======

--HG--
extra : rebase_source : 73172c901f80e2f6e9f52035e1d6eab2a220642f
Bug 802457. Ensure that positioned children of intrinsic-height viewports are reflowed with the correct container height. r=mats

--HG--
extra : rebase_source : 389b5916de9b7a7bd4232f2c541ae0db7500ba2e
Bug 800859. Part 1: Refactor PaintType into two independent flags. r=mattwoodrow

--HG--
extra : rebase_source : 9bb272d795f42e63ea00e0f9107eeaaa593a332d
Bug 800859. Part 2: Remove nsIPresShell::DidPaint. r=mattwoodrow

--HG--
extra : rebase_source : 3c46d24378ca10f4cf3c476d1de6930ed9683946
Bug 800859. Part 3: Dispatch MozAfterPaint after we've done the COMPOSITE step for the invalidations recorded in the event. r=mattwoodrow

--HG--
extra : rebase_source : 7a204c0930e7a2a35ad99af79d28ebba56f034fe
Bug 800859. Part 4 alternative: unconditionally dispatch MozAfterPaint to all subdocuments. r=mattwoodrow

--HG--
extra : rebase_source : 2cc3125aff27b55daf6d306a2c391a9587a70101
Bug 803289 - Only set stubbed tab URLs for valid URIs. r=mfinkle
b=793501 set gFocusWindow on fallback instead of early, which interfered with container window focus change detection in SetFocus() r=roc

--HG--
extra : transplant_source : %AD%07%A7%EB/%D6M%F3i%21%85d%8D%E8%92K%D6%1D%1F8
b=793501 don't resize toplevel window in response to resized notification r=bz

--HG--
extra : transplant_source : U%3E%D3b%3D%AE0%0D%C7%8D%27%F5a%D4%F6%2C%27%EE%EA%A1
b=793501 remove unused event handler parameters r=roc

--HG--
extra : transplant_source : %E9%E8%FD1/%11u6%A2C%91%0B%5C%BA%C0P%E2%17S%09
b=793501 don't use a separate GdkWindow for MozContainer (unless necessary) r=roc

--HG--
extra : transplant_source : %FA1%A7%EA%3D%D8a%87%F4%E0%93%9FeP%89%EB%DD%DAI%12
b=793501 don't log child window XIDs as this has the side effect of creating X Windows early r=roc

--HG--
extra : transplant_source : -%3AP%3F%8F4V%F3%C2K%B7s%89%DA%0D%3A%DC6O%97
b=793501 invalidate new regions of even toplevel resized windows r=roc

--HG--
extra : transplant_source : %F1%A6%EDiKo%13%8D%8B%F5%7E%F9%2A%D2%D6%AC_%CA%ED%90
b=793501 attach DocumentViewer to top GTK widget r=roc

--HG--
extra : transplant_source : F%94%EC%07%23%7B2L%BCr%28%C5%088%06%FD%CD%9A%BAe
Bug 790393 - Add MozPower.factoryReset() for factory reset. r=cjones, r=vingtetun, sr=sicking
Bug 791428 - Limit pixel sizes so that they can't exceed app unit limits. r=roc
Bug 791428 - Remove unnecessary malloc from number format function. r=roc
Bug 803452 - Remember my choice for geolocation doesn't work. r=vingtetun
Bug 804118 - Fix crashtests to use mozRTCPeerConnection insread of mozPeerConnection. r=jesup