Changeset 19594


Ignore:
Timestamp:
01/31/12 18:19:36 (4 months ago)
Author:
sam
Message:

scenari-release.patch compat avec Geko 10.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lib_XulRunner/bui/patches/scenari-release.patch

    r19093 r19594  
    1313+nsAutoString nsHTMLEditor::GetUserSelectStyle(nsIDOMNode *aNode)   
    1414+{ 
    15 +       nsAutoString mozUserSelectValue; 
    16 +       mHTMLCSSUtils->GetComputedProperty(aNode, nsEditProperty::cssMozUserSelect, mozUserSelectValue); 
    17 +       return mozUserSelectValue; 
     15+  nsAutoString mozUserSelectValue; 
     16+  mHTMLCSSUtils->GetComputedProperty(aNode, nsEditProperty::cssMozUserSelect, mozUserSelectValue); 
     17+  return mozUserSelectValue; 
    1818+} 
    1919+ 
    20  NS_IMETHODIMP_(PRBool) 
     20 NS_IMETHODIMP_(bool) 
    2121 nsHTMLEditor::IsModifiableNode(nsIDOMNode *aNode) 
    2222 { 
     
    4343 } 
    4444  
    45  PRBool  
     45 bool  
    4646 nsHTMLEditor::IsContainer(nsIDOMNode *aNode) 
    4747 { 
     
    5757                               nsCOMPtr<nsIDOMNode> *ioParent,  
    5858                               PRInt32 *ioOffset,  
    59                                PRBool aNoEmptyNodes); 
     59                               bool aNoEmptyNodes); 
    6060   already_AddRefed<nsIDOMNode> FindUserSelectAllNode(nsIDOMNode* aNode); 
    6161+  nsAutoString GetUserSelectStyle(nsIDOMNode *aNode); 
     
    7171--- a/editor/libeditor/html/nsHTMLEditorEventListener.cpp 
    7272+++ b/editor/libeditor/html/nsHTMLEditorEventListener.cpp 
    73 @@ -235,17 +235,25 @@ nsHTMLEditorEventListener::MouseDown(nsI 
     73@@ -228,17 +228,25 @@ nsHTMLEditorEventListener::MouseDown(nsI 
    7474         } 
    7575  
     
    124124--- a/extensions/spellcheck/src/mozInlineSpellChecker.cpp 
    125125+++ b/extensions/spellcheck/src/mozInlineSpellChecker.cpp 
    126 @@ -632,18 +632,18 @@ mozInlineSpellChecker::CanEnableInlineSp 
     126@@ -640,18 +640,18 @@ mozInlineSpellChecker::UpdateCanEnableIn 
    127127 nsresult 
    128128 mozInlineSpellChecker::RegisterEventListeners() 
     
    143143  
    144144   piTarget->AddEventListener(NS_LITERAL_STRING("blur"), this, 
    145                               PR_TRUE, PR_FALSE); 
     145                              true, false); 
    146146   piTarget->AddEventListener(NS_LITERAL_STRING("click"), this, 
    147 @@ -658,18 +658,18 @@ mozInlineSpellChecker::RegisterEventList 
     147@@ -666,18 +666,18 @@ mozInlineSpellChecker::RegisterEventList 
    148148 nsresult 
    149149 mozInlineSpellChecker::UnregisterEventListeners() 
     
    163163   NS_ENSURE_TRUE(piTarget, NS_ERROR_NULL_POINTER); 
    164164  
    165    piTarget->RemoveEventListener(NS_LITERAL_STRING("blur"), this, PR_TRUE); 
    166    piTarget->RemoveEventListener(NS_LITERAL_STRING("click"), this, PR_FALSE); 
    167    piTarget->RemoveEventListener(NS_LITERAL_STRING("keypress"), this, PR_FALSE); 
    168 @@ -1684,30 +1684,30 @@ NS_IMETHODIMP mozInlineSpellChecker::Han 
     165   piTarget->RemoveEventListener(NS_LITERAL_STRING("blur"), this, true); 
     166   piTarget->RemoveEventListener(NS_LITERAL_STRING("click"), this, false); 
     167   piTarget->RemoveEventListener(NS_LITERAL_STRING("keypress"), this, false); 
     168@@ -1747,30 +1747,30 @@ NS_IMETHODIMP mozInlineSpellChecker::Han 
    169169   } 
    170170  
     
    175175 { 
    176176   // force spellcheck on blur, for instance when tabbing out of a textbox 
    177 -  HandleNavigationEvent(PR_TRUE); 
    178 +  HandleNavigationEvent(PR_TRUE, 0); 
     177-  HandleNavigationEvent(true); 
     178+  HandleNavigationEvent(true, 0); 
    179179   return NS_OK; 
    180180 } 
     
    199199   NS_ENSURE_TRUE(keyEvent, NS_OK); 
    200200  
    201 @@ -1722,14 +1722,14 @@ nsresult mozInlineSpellChecker::KeyPress 
    202        HandleNavigationEvent(PR_FALSE, keyCode == nsIDOMKeyEvent::DOM_VK_RIGHT ? 1 : -1); 
     201@@ -1785,17 +1785,17 @@ nsresult mozInlineSpellChecker::KeyPress 
     202       HandleNavigationEvent(false, keyCode == nsIDOMKeyEvent::DOM_VK_RIGHT ? 1 : -1); 
    203203       break; 
    204204     case nsIDOMKeyEvent::DOM_VK_UP: 
     
    208208     case nsIDOMKeyEvent::DOM_VK_PAGE_UP: 
    209209     case nsIDOMKeyEvent::DOM_VK_PAGE_DOWN: 
    210 -      HandleNavigationEvent(PR_TRUE /* force a spelling correction */); 
    211 +      HandleNavigationEvent(PR_TRUE /* force a spelling correction */, 0); 
     210-      HandleNavigationEvent(true /* force a spelling correction */); 
     211+      HandleNavigationEvent(true /* force a spelling correction */, 0); 
    212212       break; 
    213213   } 
     
    215215   return NS_OK; 
    216216 } 
     217  
     218 NS_IMETHODIMP mozInlineSpellChecker::UpdateCurrentDictionary() 
     219 { 
    217220diff --git a/extensions/spellcheck/src/mozInlineSpellChecker.h b/extensions/spellcheck/src/mozInlineSpellChecker.h 
    218221--- a/extensions/spellcheck/src/mozInlineSpellChecker.h 
    219222+++ b/extensions/spellcheck/src/mozInlineSpellChecker.h 
    220 @@ -281,17 +281,18 @@ public: 
     223@@ -292,17 +292,18 @@ public: 
    221224  
    222225   nsresult MakeSpellCheckRange(nsIDOMNode* aStartNode, PRInt32 aStartOffset, 
    223226                                nsIDOMNode* aEndNode, PRInt32 aEndOffset, 
    224                                 nsIDOMRange** aRange); 
     227                                nsIRange** aRange); 
    225228  
    226229   // DOM and editor event registration helper routines 
    227230   nsresult RegisterEventListeners(); 
    228231   nsresult UnregisterEventListeners(); 
    229 -  nsresult HandleNavigationEvent(PRBool aForceWordSpellCheck, PRInt32 aNewPositionOffset = 0); 
     232-  nsresult HandleNavigationEvent(bool aForceWordSpellCheck, PRInt32 aNewPositionOffset = 0); 
    230233+  //Added to IDL 
    231 +  //nsresult HandleNavigationEvent(PRBool aForceWordSpellCheck, PRInt32 aNewPositionOffset = 0); 
     234+  //nsresult HandleNavigationEvent(bool aForceWordSpellCheck, PRInt32 aNewPositionOffset = 0); 
    232235  
    233236   nsresult GetSpellCheckSelection(nsISelection ** aSpellCheckSelection); 
Note: See TracChangeset for help on using the changeset viewer.