OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 WebString WebAXObject::title() const | 823 WebString WebAXObject::title() const |
824 { | 824 { |
825 if (isDetached()) | 825 if (isDetached()) |
826 return WebString(); | 826 return WebString(); |
827 | 827 |
828 ASSERT(isLayoutClean(m_private->document())); | 828 ASSERT(isLayoutClean(m_private->document())); |
829 | 829 |
830 return m_private->title(); | 830 return m_private->title(); |
831 } | 831 } |
832 | 832 |
| 833 WebString WebAXObject::language() const |
| 834 { |
| 835 if (isDetached()) |
| 836 return WebString(); |
| 837 |
| 838 return m_private->language(); |
| 839 } |
| 840 |
833 WebAXObject WebAXObject::titleUIElement() const | 841 WebAXObject WebAXObject::titleUIElement() const |
834 { | 842 { |
835 if (isDetached()) | 843 if (isDetached()) |
836 return WebAXObject(); | 844 return WebAXObject(); |
837 | 845 |
838 if (!m_private->exposesTitleUIElement()) | 846 if (!m_private->exposesTitleUIElement()) |
839 return WebAXObject(); | 847 return WebAXObject(); |
840 | 848 |
841 return WebAXObject(m_private->titleUIElement()); | 849 return WebAXObject(m_private->titleUIElement()); |
842 } | 850 } |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1230 m_private = object; | 1238 m_private = object; |
1231 return *this; | 1239 return *this; |
1232 } | 1240 } |
1233 | 1241 |
1234 WebAXObject::operator WTF::PassRefPtr<AXObject>() const | 1242 WebAXObject::operator WTF::PassRefPtr<AXObject>() const |
1235 { | 1243 { |
1236 return m_private.get(); | 1244 return m_private.get(); |
1237 } | 1245 } |
1238 | 1246 |
1239 } // namespace blink | 1247 } // namespace blink |
OLD | NEW |