Skip to content

Implement Window viewport, scrolling, and client properties #1718

Closed

Activity

  1. payload commented on Dec 2, 2014

    @payload
    Contributor

    Is there already a way for the script task to communicate with the glfw_app? This is necessary, right?

  2. jdm commented on Dec 2, 2014

    @jdm
    MemberAuthor

    I think it would be better for the compositor to inform the script task of the viewport dimensions, which would also support things like iframes.

  3. payload commented on Dec 3, 2014

    @payload
    Contributor

    I actually asked because I am not sure about the way how a call to Window.resizeTo(w, h) communicates the intend to resize a window to the Browser<Window> which could finally call the appropriate glfw function. There are channels back and forth but I don't see an obvious way. Does GlfwCompositorProxy need a receiver or something? Better I ask before I do something without an overview of the architecture.

  4. jdm commented on Dec 3, 2014

    @jdm
    MemberAuthor
  5. jdm commented on Dec 3, 2014

    @jdm
    MemberAuthor

    Oh, it's possible that there's currently no way to implement Window.resizeTo. I haven't looked at the script->compositor design much before.

  6. jdm commented on Dec 3, 2014

    @jdm
    MemberAuthor

    That probably would go through ScriptListener, and the compositor field of ScriptTask would need to be available to each Window somehow: http://mxr.mozilla.org/servo/source/components/msg/compositor_msg.rs#108

  7. farodin91 commented on Jul 30, 2015

    @farodin91
    Contributor

    Is some one working this?

  8. jdm commented on Jul 30, 2015

    @jdm
    MemberAuthor

    Nope!

  9. farodin91 commented on Jul 30, 2015

    @farodin91
    Contributor

    I'd like to work on it.

  10. added
    C-assigned
    on Jul 30, 2015
  11. jdm commented on Jul 30, 2015

    @jdm
    MemberAuthor

    You're welcome to it.

  12. farodin91 commented on Jul 30, 2015

    @farodin91
    Contributor

    I will start the next days. First i must finish my bachelor thesis.

    Any tipps for interesting files, that can help?

  13. jdm commented on Jul 30, 2015

    @jdm
    MemberAuthor

    Window in component/script/dom/window.rs has a window_size member which is updated on resizing. I believe that scrolling events are handled in Window::set_page_clip_rect_with_new_viewport, too, where the new viewport is the new rectangle of visible page (ie. scroll offsets).

    I made these observations by searching for the words "resize" and "scroll" in script_task.rs, dom/window.rs, and compositor.rs. I suspect the client properties (clientX, clientY, outerWidth, outerHeight) will need to be forwarded from compositor.rs somehow.

  14. 5 remaining items

  15. jdm commented on Jul 31, 2015

    @jdm
    MemberAuthor

    What do you mean?

  16. jdm commented on Jul 31, 2015

    @jdm
    MemberAuthor

    Oof. The stuff in the spec about implementing the scrolling methods is definitely more complication and could use @mbrubeck's input. Why don't you submit a PR for the completed methods so far?

  17. farodin91 commented on Jul 31, 2015

    @farodin91
    Contributor

    No problem.
    Wait!

  18. added a commit that references this issue on Sep 1, 2015
  19. added a commit that references this issue on Sep 1, 2015
  20. added a commit that references this issue on Sep 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/domC-assignedE-more-complex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions