OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 | 944 |
945 const ComputedStyle* style = m_layoutObject->style(); | 945 const ComputedStyle* style = m_layoutObject->style(); |
946 if (!style) | 946 if (!style) |
947 return AXNodeObject::textStyle(); | 947 return AXNodeObject::textStyle(); |
948 | 948 |
949 unsigned textStyle = TextStyleNone; | 949 unsigned textStyle = TextStyleNone; |
950 if (style->fontWeight() == FontWeightBold) | 950 if (style->fontWeight() == FontWeightBold) |
951 textStyle |= TextStyleBold; | 951 textStyle |= TextStyleBold; |
952 if (style->fontDescription().style() == FontStyleItalic) | 952 if (style->fontDescription().style() == FontStyleItalic) |
953 textStyle |= TextStyleItalic; | 953 textStyle |= TextStyleItalic; |
954 if (style->textDecoration() == TextDecorationUnderline) | 954 if (style->getTextDecoration() == TextDecorationUnderline) |
955 textStyle |= TextStyleUnderline; | 955 textStyle |= TextStyleUnderline; |
956 if (style->textDecoration() == TextDecorationLineThrough) | 956 if (style->getTextDecoration() == TextDecorationLineThrough) |
957 textStyle |= TextStyleLineThrough; | 957 textStyle |= TextStyleLineThrough; |
958 | 958 |
959 return static_cast<TextStyle>(textStyle); | 959 return static_cast<TextStyle>(textStyle); |
960 } | 960 } |
961 | 961 |
962 KURL AXLayoutObject::url() const | 962 KURL AXLayoutObject::url() const |
963 { | 963 { |
964 if (isAnchor() && isHTMLAnchorElement(m_layoutObject->node())) { | 964 if (isAnchor() && isHTMLAnchorElement(m_layoutObject->node())) { |
965 if (HTMLAnchorElement* anchor = toHTMLAnchorElement(anchorElement())) | 965 if (HTMLAnchorElement* anchor = toHTMLAnchorElement(anchorElement())) |
966 return anchor->href(); | 966 return anchor->href(); |
(...skipping 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2546 if (label && label->layoutObject()) { | 2546 if (label && label->layoutObject()) { |
2547 LayoutRect labelRect = axObjectCache().getOrCreate(label)->elementRe
ct(); | 2547 LayoutRect labelRect = axObjectCache().getOrCreate(label)->elementRe
ct(); |
2548 result.unite(labelRect); | 2548 result.unite(labelRect); |
2549 } | 2549 } |
2550 } | 2550 } |
2551 | 2551 |
2552 return result; | 2552 return result; |
2553 } | 2553 } |
2554 | 2554 |
2555 } // namespace blink | 2555 } // namespace blink |
OLD | NEW |