| Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| index 9f80ca593c47a33958f8c9eb025376c01f79dac5..28b52665358dce45a16d073a9089e689294cbeb6 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -2929,63 +2929,6 @@ PassRefPtr<ComputedStyle> LayoutObject::getUncachedPseudoStyleFromParentOrShadow
|
| return getUncachedPseudoStyle(PseudoStyleRequest(SELECTION));
|
| }
|
|
|
| -void LayoutObject::getTextDecorations(unsigned decorations, AppliedTextDecoration& underline, AppliedTextDecoration& overline, AppliedTextDecoration& linethrough, bool quirksMode, bool firstlineStyle)
|
| -{
|
| - LayoutObject* curr = this;
|
| - const ComputedStyle* styleToUse = nullptr;
|
| - unsigned currDecs = TextDecorationNone;
|
| - Color resultColor;
|
| - TextDecorationStyle resultStyle;
|
| - do {
|
| - styleToUse = curr->style(firstlineStyle);
|
| - currDecs = styleToUse->textDecoration();
|
| - currDecs &= decorations;
|
| - resultColor = styleToUse->visitedDependentColor(CSSPropertyTextDecorationColor);
|
| - resultStyle = styleToUse->textDecorationStyle();
|
| - // Parameter 'decorations' is cast as an int to enable the bitwise operations below.
|
| - if (currDecs) {
|
| - if (currDecs & TextDecorationUnderline) {
|
| - decorations &= ~TextDecorationUnderline;
|
| - underline.color = resultColor;
|
| - underline.style = resultStyle;
|
| - }
|
| - if (currDecs & TextDecorationOverline) {
|
| - decorations &= ~TextDecorationOverline;
|
| - overline.color = resultColor;
|
| - overline.style = resultStyle;
|
| - }
|
| - if (currDecs & TextDecorationLineThrough) {
|
| - decorations &= ~TextDecorationLineThrough;
|
| - linethrough.color = resultColor;
|
| - linethrough.style = resultStyle;
|
| - }
|
| - }
|
| - if (curr->isRubyText())
|
| - return;
|
| - curr = curr->parent();
|
| - if (curr && curr->isAnonymousBlock() && toLayoutBlock(curr)->continuation())
|
| - curr = toLayoutBlock(curr)->continuation();
|
| - } while (curr && decorations && (!quirksMode || !curr->node() || (!isHTMLAnchorElement(*curr->node()) && !isHTMLFontElement(*curr->node()))));
|
| -
|
| - // If we bailed out, use the element we bailed out at (typically a <font> or <a> element).
|
| - if (decorations && curr) {
|
| - styleToUse = curr->style(firstlineStyle);
|
| - resultColor = styleToUse->visitedDependentColor(CSSPropertyTextDecorationColor);
|
| - if (decorations & TextDecorationUnderline) {
|
| - underline.color = resultColor;
|
| - underline.style = resultStyle;
|
| - }
|
| - if (decorations & TextDecorationOverline) {
|
| - overline.color = resultColor;
|
| - overline.style = resultStyle;
|
| - }
|
| - if (decorations & TextDecorationLineThrough) {
|
| - linethrough.color = resultColor;
|
| - linethrough.style = resultStyle;
|
| - }
|
| - }
|
| -}
|
| -
|
| void LayoutObject::addAnnotatedRegions(Vector<AnnotatedRegionValue>& regions)
|
| {
|
| // Convert the style regions to absolute coordinates.
|
|
|