Bug 1048752. Part 29: mVisible is never true in nsCaret::Init. r=tn

--HG--
extra : rebase_source : 7fd2386e3f5ea667bc0ff4948182187d56647482
Bug 1048752. Part 30: Simplify caret blinking logic. r=tn
A few things got mashed together here:
-- Inline KillTimer/PrimeTimer into their callers.
-- Instead of having to call StopBlinking and StartBlinking together,
change StartBlinking to ResetBlinking and have it set up
the correct blink state and reset the blink cycle.
-- nsCaret::NotifySelectionChange needs a SchedulePaint
-- nsCaret::DrawAtPosition needs a ResetBlinking

--HG--
extra : rebase_source : abc7fd78c4f20b787b212e1e3f13226a1ccff16b
Bug 1048752. Part 31: nsCaret.h must be the first #include in nsCaret.cpp. r=tn
Also cleans up a couple of other ordering issues.

--HG--
extra : rebase_source : 3c5e3f4b56cf3d11b73e9d495fc6c2c8a8170e5f
Bug 1048752. Part 32: Rename DrawAtPosition to SetCaretPosition and don't make it turn off blinking. r=tn
There's no need for this method to turn off blinking anymore. Its only
caller already calls SetCaretReadOnly to achieve the same effect. That
means we don't actually need the mIsBlinking flag after all.

--HG--
extra : rebase_source : 9d4c31282ed280c0f822f1d9f7fa8ae1c2ba6cab
Bug 1048752. Part 33: A zero blink rate should mean the caret is always on. r=tn
Previous changes broke this.

--HG--
extra : rebase_source : d0dc9bd22f93f40465b3448cf20050ac725ee560
Bug 1048752. Part 34: Handle null selection returned by GetSelection(). r=tn
Previous changes broke this. Tests caught it.

--HG--
extra : rebase_source : 20f365b3f6074fe18d4aaa7f81baf64f3b64e8de
Bug 1048752. Part 35: Remove GetFrameSelection (unused). r=tn

--HG--
extra : rebase_source : 4b528b7de79bf3f1e03891cb093d16a111605c2c
Bug 1048752. Part 36: Remove ancient horizontal rules. r=tn

--HG--
extra : rebase_source : 7537ad3060b7703565d2a259109fae96e238e0a4
Bug 1048752. Part 37: GetGeometryForFrame should return a rect instead of an nsresult. r=tn

--HG--
extra : rebase_source : f49846cc50de2a3a616a991d81b38bf6c1d9a2c5
Bug 1048752. Part 38: Adjust test annotation for fixed assertion. r=tn
This test used to assert because we tried to get frame geometry during a caret
update while the frame was dirty. That no longer happens since now we only try
to get frame geometry during a paint. During a paint, frames can still be dirty
so this assertion could still be triggered, and we should probably fix that
eventually, but it would only happen during an interrupted layout which is
quite rare.

--HG--
extra : rebase_source : a73866834119e5c617adb0a7757fde27d2791759
Bug 1046828 - [Notifications API] We should never send the "show" event using system messages at a reboot. r=mhenretty
Bug 951991 - Assert against calling GetCurrentInnerWindow on an inner. r=smaug

The current convention is that this returns null when invoked on an inner, which
callers may or may not handle correctly. But when we start using GetEntryGlobal,
we'll end up with a lot of inners where we used to get outers, so we should get
strict about this now.
Bug 951991 - Implement GetEntryGlobal. r=smaug
Bug 796938 - Switch nsGlobalWindow::Focus to GetEntryGlobal and eliminate nsContentUtils::GetWindowFromCaller. r=smaug
Bug 796938 - Switch nsHTMLDocument::Open and XMLDocument::Load to a new GetEntryDocument API and remove nsContentUtils::GetDocumentFromContext. r=smaug
Bug 796938 - Switch nsGlobalWindow::SecurityCheckURL to GetEntryGlobal. r=smaug
Bug 796938 - Switch to GetEntryGlobal in GetCallerDocShellTreeItem. r=smaug
Bug 796938 - Switch to GetEntryGlobal in nsWindowWatcher::GetCallerTreeItem. r=smaug
Bug 796938 - Switch to GetEntryDocument in GetDocumentCharacterSetForURI. r=smaug
Bug 796938 - Switch nsLocation::GetSourceBaseURL to GetEntryDocument. r=smaug