Skip to content
  • antti@apple.com's avatar
    Hovering over text using simple line path should not cause switch to line boxes · 52e1a9f3
    antti@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=124418
    
    Reviewed by Anders Carlsson.
    
    Source/WebCore: 
    
    Test: fast/text/simple-lines-hover.html
    
    * rendering/RenderText.cpp:
    (WebCore::RenderText::absoluteRects):
    (WebCore::RenderText::absoluteQuadsClippedToEllipsis):
    (WebCore::RenderText::absoluteQuads):
            
        Collect quads and rects directly from simple lines without requiring the line box switch.
    
    * rendering/SimpleLineLayoutFunctions.cpp:
    (WebCore::SimpleLineLayout::collectTextAbsoluteRects):
    (WebCore::SimpleLineLayout::collectTextAbsoluteQuads):
            
        Add these.
    
    * rendering/SimpleLineLayoutFunctions.h:
    * rendering/SimpleLineLayoutResolver.h:
    (WebCore::SimpleLineLayout::RunResolver::Run::start):
    (WebCore::SimpleLineLayout::RunResolver::Run::end):
            
        For future use.
    
    LayoutTests: 
    
    * fast/text/simple-lines-hover-expected.html: Added.
    * fast/text/simple-lines-hover.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159345 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    52e1a9f3