Bug 1230034 part 5 - Convert all frame properties which use DeleteValue and ReleaseValue as destructor to be typesafe. r=dbaron

By changing signature of those two functions, we make compiler complain about
all their existing uses, so we can find all of them and convert them.

Some of the callsites of Get() with those properties are also converted, but not
all of them. It is fine because if there is any incorrect conversion, compilers
is able to find out now. So they are completely typesafe.
This commit is contained in:
Xidorn Quan
2016-01-28 14:23:59 +11:00
parent 8e2ada8719
commit ca146f45ac
20 changed files with 115 additions and 110 deletions

View File

@@ -1238,8 +1238,7 @@ nsTextControlFrame::SetInitialChildList(ChildListID aListID,
NS_ASSERTION(txtCtrl, "Content not a text control element");
txtCtrl->InitializeKeyboardEventListeners();
nsPoint* contentScrollPos = static_cast<nsPoint*>
(Properties().Get(ContentScrollPos()));
nsPoint* contentScrollPos = Properties().Get(ContentScrollPos());
if (contentScrollPos) {
// If we have a scroll pos stored to be passed to our anonymous
// div, do it here!