B2G/gecko/browser/devtools/responsivedesign/responsivedesign.jsm
/**
   * Start the process of resizing the browser.
   *
   * @param aEvent
   */
Start the process of resizing the browser.
@param aEvent
Start the process of resizing the browser . @param aEvent
function RUI_startResizing(aEvent) {
    let selectedPreset = this.menuitems.get(this.selectedItem);
    if (!selectedPreset.custom) {
      this.customPreset.width = this.rotateValue ? selectedPreset.height : selectedPreset.width;
      this.customPreset.height = this.rotateValue ? selectedPreset.width : selectedPreset.height;
      let menuitem = this.customMenuitem;
      this.setMenuLabel(menuitem, this.customPreset);
      this.currentPresetKey = this.customPreset.key;
      this.menulist.selectedItem = menuitem;
    }
    this.mainWindow.addEventListener("mouseup", this.bound_stopResizing, true);
    this.mainWindow.addEventListener("mousemove", this.bound_onDrag, true);
    this.container.style.pointerEvents = "none";
    this._resizing = true;
    this.stack.setAttribute("notransition", "true");
    this.lastClientX = aEvent.clientX;
    this.lastClientY = aEvent.clientY;
    this.ignoreY = (aEvent.target === this.resizeBar);
    this.isResizing = true;
  }
function RUI_startResizing ( aEvent ) { let selectedPreset = this . menuitems . get ( this . selectedItem ) ; if ( ! selectedPreset . custom ) { this . customPreset . width = this . rotateValue ? selectedPreset . height : selectedPreset . width ; this . customPreset . height = this . rotateValue ? selectedPreset . width : selectedPreset . height ; let menuitem = this . customMenuitem ; this . setMenuLabel ( menuitem , this . customPreset ) ; this . currentPresetKey = this . customPreset . key ; this . menulist . selectedItem = menuitem ; } this . mainWindow . addEventListener ( "mouseup" , this . bound_stopResizing , true ) ; this . mainWindow . addEventListener ( "mousemove" , this . bound_onDrag , true ) ; this . container . style . pointerEvents = "none" ; this . _resizing = true ; this . stack . setAttribute ( "notransition" , "true" ) ; this . lastClientX = aEvent . clientX ; this . lastClientY = aEvent . clientY ; this . ignoreY = ( aEvent . target === this . resizeBar ) ; this . isResizing = true ; }
Start the process of resizing the browser.
Start the process of resizing the browser .