1. 21 Dec, 2016 1 commit
  2. 20 Dec, 2016 1 commit
  3. 19 Dec, 2016 2 commits
  4. 16 Dec, 2016 2 commits
  5. 30 Nov, 2016 3 commits
  6. 28 Nov, 2016 2 commits
    • Nick Stenning's avatar
      Remove 'defer_realtime_updates' feature flagging · fad29df7
      Nick Stenning authored
      This is now enabled by for everyone, so we don't need the feature flag
      any more.
      fad29df7
    • Robert Knight's avatar
      Speed up PDF anchoring (#171) · ff8e000e
      Robert Knight authored
      When anchoring many annotations on a PDF, the text of the same page may
      be requested many times.
      
      The text is initially fetched via an async call to
      PDFViewerApplication.pdfViewer.getPageTextContent() and the result is
      then cached for future use.
      
      Previously the cache was only updated once this expensive call
      returned a result. Consequently when anchoring many annotations at once,
      there would be a lot of unnecessary cache misses and repeated calls to
      PDFViewerApplication.pdfViewer.getPageTextContent()
      
      Fix the problem by storing a promise for the result in the cache when
      the text for a given page is requested the first time. Consequently the
      text for each page will only be fetched once.
      ff8e000e
  7. 27 Nov, 2016 1 commit
    • Robert Knight's avatar
      Use a custom element name for highlight spans · 2d971124
      Robert Knight authored
      Use the same trick that was applied to the adder in
      d9644a80 to reduce the likelihood of the
      page's own CSS styling modifying the appearance of highlights.
      
      Compared to alternative methods which would raise the precedence of
      highlight styling (inline styles, !important !all !the !things, selector
      precedence hacks), this approach is simpler as it makes the conflicting
      rule from the page's own styling not apply at all.
      
      Fixes hypothesis/h#3520
      2d971124
  8. 18 Nov, 2016 2 commits
  9. 17 Nov, 2016 1 commit
  10. 16 Nov, 2016 1 commit
  11. 15 Nov, 2016 1 commit
  12. 08 Nov, 2016 2 commits
    • Robert Knight's avatar
      Fix incorrect usage of Sinon assertions (#162) · 6975c449
      Robert Knight authored
      This fixes a couple of incorrect usages of Sinon assertions which
      resulted in test failures with the latest patch version of Sinon.
      
       * assert.calledOnce() only takes one argument
      
       * Sinon assertions do not take a message argument as Chai assertions
         do. See http://sinonjs.org/docs/#assertions
      6975c449
    • Robert Knight's avatar
      Remove AnnotationUISync service (#127) · bb71cd77
      Robert Knight authored
      * Move event handlers out of AnnotationUISync
      
      As a step towards having all bridge event handlers in one place, move
      these event handlers into frameSync.
      
       * Add tests for findIDsForTags() and for re-exporting of this
         function from annotationUI
      
      * Move sidebarOpened event handler to FrameSync service
      
      * Remove the AnnotationUISync service
      
      Its functionality has now been moved into the FrameSync service, except
      for the logic that was intended to synchronize the "Show Annotation
      Highlights" logic across multiple frames, since this is clearly broken
      [1].
      
      The two pieces of functionality related to this we need to support at
      the moment are:
      
       1. The `showHighlights` config option to set whether highlights are
          initially visible.
      
       2. The highlight toggle button in the sidebar's outer frame
      
      Both of these work without the sidebar app's involvement.
      
      [1] See https://github.com/hypothesis/h/issues/3433 and
          https://github.com/hypothesis/h/pull/3295
      bb71cd77
  13. 04 Nov, 2016 4 commits
  14. 28 Oct, 2016 2 commits
  15. 25 Oct, 2016 5 commits
  16. 24 Oct, 2016 4 commits
  17. 21 Oct, 2016 5 commits
  18. 20 Oct, 2016 1 commit
    • Robert Knight's avatar
      Update proxyquire · a93c0cd0
      Robert Knight authored
      Update this dependency in preparation for updating the
      dom-anchor-text-{quote, position} libraries.
      
      The previous version indirectly used an old version of
      combine-source-map that is not compatible with the inline source maps in
      the newest versions of the dom-anchor-* libraries.
      a93c0cd0