Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: third_party/WebKit/Source/web/WebAXObject.cpp

Issue 1768753003: Implemented the reporting of text style and language information on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test expectations. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 WebRect WebAXObject::boundingBoxRect() const 629 WebRect WebAXObject::boundingBoxRect() const
630 { 630 {
631 if (isDetached()) 631 if (isDetached())
632 return WebRect(); 632 return WebRect();
633 633
634 ASSERT(isLayoutClean(m_private->getDocument())); 634 ASSERT(isLayoutClean(m_private->getDocument()));
635 635
636 return pixelSnappedIntRect(m_private->elementRect()); 636 return pixelSnappedIntRect(m_private->elementRect());
637 } 637 }
638 638
639 WebString WebAXObject::fontFamily() const
640 {
641 if (isDetached())
642 return WebString();
643
644 return m_private->fontFamily();
645 }
646
639 float WebAXObject::fontSize() const 647 float WebAXObject::fontSize() const
640 { 648 {
641 if (isDetached()) 649 if (isDetached())
642 return 0.0f; 650 return 0.0f;
643 651
644 return m_private->fontSize(); 652 return m_private->fontSize();
645 } 653 }
646 654
647 bool WebAXObject::canvasHasFallbackContent() const 655 bool WebAXObject::canvasHasFallbackContent() const
648 { 656 {
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
1508 m_private = object; 1516 m_private = object;
1509 return *this; 1517 return *this;
1510 } 1518 }
1511 1519
1512 WebAXObject::operator AXObject*() const 1520 WebAXObject::operator AXObject*() const
1513 { 1521 {
1514 return m_private.get(); 1522 return m_private.get();
1515 } 1523 }
1516 1524
1517 } // namespace blink 1525 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXObject.h ('k') | third_party/WebKit/public/web/WebAXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698