Bug 745982 - Move border padding to VisualPresenter. r=surkov.
authorEitan Isaacson <eitan@monotonous.org>
Tue, 17 Apr 2012 09:48:01 -0700
changeset 91877 4a5d25e138e23585c50cf6fdd1f2093908f92da2
parent 91876 2bfce9e64bf11aa749aa037f2adf71216aab60d8
child 91878 6c0fdf2079a96dc609f000d5f4943d181de5c144
push id690
push usertim.taubert@gmx.de
push dateThu, 19 Apr 2012 08:49:11 +0000
treeherderfx-team@a9b543de6b67 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssurkov
bugs745982
milestone14.0a1
Bug 745982 - Move border padding to VisualPresenter. r=surkov.
accessible/src/jsat/Presenters.jsm
--- a/accessible/src/jsat/Presenters.jsm
+++ b/accessible/src/jsat/Presenters.jsm
@@ -19,21 +19,16 @@ var EXPORTED_SYMBOLS = ['VisualPresenter
 /**
  * The interface for all presenter classes. A presenter could be, for example,
  * a speech output module, or a visual cursor indicator.
  */
 function Presenter() {}
 
 Presenter.prototype = {
   /**
-   * The padding in pixels between the object and the highlight border.
-   */
-  BORDER_PADDING: 2,
-
-  /**
    * Attach function for presenter.
    * @param {ChromeWindow} aWindow Chrome window the presenter could use.
    */
   attach: function attach(aWindow) {},
 
   /**
    * Detach function.
    */
@@ -91,16 +86,21 @@ Presenter.prototype = {
 /**
  * Visual presenter. Draws a box around the virtual cursor's position.
  */
 
 function VisualPresenter() {}
 
 VisualPresenter.prototype = new Presenter();
 
+/**
+ * The padding in pixels between the object and the highlight border.
+ */
+VisualPresenter.prototype.BORDER_PADDING = 2;
+
 VisualPresenter.prototype.attach = function(aWindow) {
   this.chromeWin = aWindow;
 
   // Add stylesheet
   let stylesheetURL = 'chrome://global/content/accessibility/AccessFu.css';
   this.stylesheet = aWindow.document.createProcessingInstruction(
     'xml-stylesheet', 'href="' + stylesheetURL + '" type="text/css"');
   aWindow.document.insertBefore(this.stylesheet, aWindow.document.firstChild);