Bug 745982 - Move border padding to VisualPresenter. r=surkov.
authorEitan Isaacson <eitan@monotonous.org>
Tue, 17 Apr 2012 09:48:01 -0700
changeset 91863 4a5d25e138e23585c50cf6fdd1f2093908f92da2
parent 91862 2bfce9e64bf11aa749aa037f2adf71216aab60d8
child 91864 6c0fdf2079a96dc609f000d5f4943d181de5c144
push id8432
push usereisaacson@mozilla.com
push dateTue, 17 Apr 2012 16:48:42 +0000
treeherdermozilla-inbound@4a5d25e138e2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssurkov
bugs745982
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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);