зеркало из https://github.com/mozilla/pjs.git
--NOT PART OF DEFAULT BUILD--
XMLterm changes only. Added FlushPendingNotifications call to scrolling routine to improve scrolling behaviour. Fixed typo in string template changes. Added (commented out) change to xmlterm.html to test PNG alpha "image melding" with the command line!
This commit is contained in:
Родитель
4a05b31b24
Коммит
d655491f76
|
@ -2884,6 +2884,8 @@ NS_IMETHODIMP mozXMLTermSession::ScrollToBottomLeft(void)
|
|||
if (NS_FAILED(result) || !domWindow)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
mPresShell->FlushPendingNotifications();
|
||||
|
||||
// Scroll to bottom left of screen
|
||||
domWindow->ScrollBy(-99999,99999);
|
||||
|
||||
|
@ -3950,7 +3952,7 @@ NS_IMETHODIMP mozXMLTermSession::SetEventAttributes(const nsString& name,
|
|||
int j;
|
||||
for (j=0; j<SESSION_EVENT_TYPES; j++) {
|
||||
nsAutoString attName; attName.AssignWithConversion("on");
|
||||
attName.AssignWithConversion(sessionEventNames[j]);
|
||||
attName.AppendWithConversion(sessionEventNames[j]);
|
||||
|
||||
nsAutoString attValue; attValue.AssignWithConversion("return HandleEvent(event, '");
|
||||
attValue.AppendWithConversion(sessionEventNames[j]);
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
xmlterm.css
|
||||
xmltpage.css
|
||||
ficon.gif
|
||||
wheel.gif
|
|
@ -13,6 +13,10 @@
|
|||
|
||||
<body onload="return LoadHandler();">
|
||||
|
||||
<!-- PNG alpha meld demo
|
||||
<img src="file:///home/svn/ice.png" style="position:absolute; top:45px; right: 0px;">
|
||||
-->
|
||||
|
||||
<form name="xmltform1">
|
||||
|
||||
<input type="button" value="New XMLTerm"
|
||||
|
@ -87,7 +91,7 @@
|
|||
onClick="return SetPromptValue();">
|
||||
<span class="formhead">Value:</span>
|
||||
<input size=45 type="text" id="inputvalue"
|
||||
value="<img src='http:/dmoz.org/img/lizard2a.gif'>"
|
||||
value="<img src='http://dmoz.org/img/lizard2a.gif'>"
|
||||
onFocus="return FormFocus();" onBlur="return FormBlur();">
|
||||
</form>
|
||||
<hr>
|
||||
|
|
Загрузка…
Ссылка в новой задаче