зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1023019 - Make the canvas graphs plot the data underneath the selection, markers and cursor, r=pbrosset
This commit is contained in:
Родитель
ebb1f337da
Коммит
1bf902d8ce
|
@ -501,15 +501,16 @@ AbstractCanvasGraph.prototype = {
|
|||
let ctx = this._ctx;
|
||||
ctx.clearRect(0, 0, this._width, this._height);
|
||||
|
||||
// Draw the grpah underneath the cursor and selection.
|
||||
if (this.hasData()) {
|
||||
ctx.drawImage(this._cachedGraphImage, 0, 0, this._width, this._height);
|
||||
}
|
||||
if (this.hasCursor()) {
|
||||
this._drawCliphead();
|
||||
}
|
||||
if (this.hasSelection() || this.hasSelectionInProgress()) {
|
||||
this._drawSelection();
|
||||
}
|
||||
if (this.hasData()) {
|
||||
ctx.drawImage(this._cachedGraphImage, 0, 0, this._width, this._height);
|
||||
}
|
||||
|
||||
this._shouldRedraw = false;
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче