Skip to content
  • commit-queue@webkit.org's avatar
    [BlackBerry] Handling required for multiple consecutive whitespace · 31612ff4
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=97575
    
    Patch by Nima Ghanavatian <nghanavatian@rim.com> on 2012-09-25
    Reviewed by Rob Buis.
    
    PR211670
    Need specific handling in the case where we have multiple
    consecutive whitespaces which exceeds our character limit. This
    breaks some of the functionality employed with the visible_units
    methods used here to tranverse the text.
    
    Internally reviewed by Mike Fenton.
    
    * WebKitSupport/DOMSupport.cpp:
    (BlackBerry::WebKit::DOMSupport::trimWhitespaceFromRange):
    (DOMSupport):
    (BlackBerry::WebKit::DOMSupport::isEmptyRangeOrAllSpaces):
    * WebKitSupport/DOMSupport.h:
    (WebCore):
    * WebKitSupport/InputHandler.cpp:
    (BlackBerry::WebKit::InputHandler::spellCheckBlock):
    (BlackBerry::WebKit::InputHandler::getRangeForSpellCheckWithFineGranularity):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129528 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    31612ff4