Changeset 203910 in webkit


Ignore:
Timestamp:
Jul 29, 2016 11:47:52 AM (8 years ago)
Author:
mark.lam@apple.com
Message:

Remove an unused line of code.
https://bugs.webkit.org/show_bug.cgi?id=160350

Reviewed by Simon Fraser.

No new tests because there's no behavior change. Just removing dead code.

SVGInlineTextBox::paintText() instantiates a local variable selectionTextRun.
Thanks to analysis by Said Abou-Hallawa, we know that selectionTextRun
was introduced in https://trac.webkit.org/changeset/61393, but was later
rendered unused in https://trac.webkit.org/changeset/62099 because we
switched to using paintTextWithShadows() with the selectionStyle. Hence,
selectionTextRun can be removed.

  • rendering/svg/SVGInlineTextBox.cpp:

(WebCore::SVGInlineTextBox::paintText):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r203904 r203910  
     12016-07-29  Mark Lam  <mark.lam@apple.com>
     2
     3        Remove an unused line of code.
     4        https://bugs.webkit.org/show_bug.cgi?id=160350
     5
     6        Reviewed by Simon Fraser.
     7
     8        No new tests because there's no behavior change.  Just removing dead code.
     9
     10        SVGInlineTextBox::paintText() instantiates a local variable selectionTextRun.
     11        Thanks to analysis by Said Abou-Hallawa, we know that selectionTextRun
     12        was introduced in https://trac.webkit.org/changeset/61393, but was later
     13        rendered unused in https://trac.webkit.org/changeset/62099 because we
     14        switched to using paintTextWithShadows() with the selectionStyle.  Hence,
     15        selectionTextRun can be removed.
     16
     17        * rendering/svg/SVGInlineTextBox.cpp:
     18        (WebCore::SVGInlineTextBox::paintText):
     19
    1202016-07-29  Eric Carlson  <eric.carlson@apple.com>
    221
  • trunk/Source/WebCore/rendering/svg/SVGInlineTextBox.cpp

    r200098 r203910  
    613613        SVGResourcesCache::clientStyleChanged(parent()->renderer(), StyleDifferenceRepaint, *selectionStyle);
    614614
    615     TextRun selectionTextRun = constructTextRun(selectionStyle, fragment);
    616615    paintTextWithShadows(context, selectionStyle, textRun, fragment, startPosition, endPosition);
    617616
Note: See TracChangeset for help on using the changeset viewer.