~ubuntu-branches/ubuntu/lucid/webkit/lucid-updates

« back to all changes in this revision

Viewing changes to WebCore/inspector/front-end/WelcomeView.js

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2010-02-04 19:30:57 UTC
  • mfrom: (1.2.8 upstream) (4.3.9 sid)
  • Revision ID: james.westby@ubuntu.com-20100204193057-d3018lm1fipb0703
* New upstream release
* debian/copyright:
- Updated with changes since 1.1.19.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    this.contentElement.className = "panel-enabler-view-content";
40
40
    this.element.appendChild(this.contentElement);
41
41
 
42
 
    this.imageElement = document.createElement("img");
43
 
    this.contentElement.appendChild(this.imageElement);
 
42
    this.alignerElement = document.createElement("div");
 
43
    this.alignerElement.className = "welcome-instructions-aligner";
 
44
    this.contentElement.appendChild(this.alignerElement);
44
45
 
45
46
    this.instructionsElement = document.createElement("div");
46
47
    this.instructionsElement.className = "instructions";
52
53
 
53
54
    if (instructionsText)
54
55
        this.addMessage(instructionsText);
55
 
 
56
 
    window.addEventListener("resize", this._windowResized.bind(this), true);
57
56
}
58
57
 
59
58
WebInspector.WelcomeView.prototype = {
60
 
    _windowResized: function()
61
 
    {
62
 
        this.imageElement.removeStyleClass("hidden");
63
 
 
64
 
        if (this.element.offsetWidth < (this.instructionsElement.offsetWidth + this.imageElement.offsetWidth))
65
 
            this.imageElement.addStyleClass("hidden");
66
 
    },
67
 
 
68
59
    addMessage: function(message)
69
60
    {
70
61
        var messageElement = document.createElement("div");