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

Side by Side Diff: Source/modules/accessibility/AXObject.cpp

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 for (unsigned i = 0; i < m_children.size(); ++i) 488 for (unsigned i = 0; i < m_children.size(); ++i)
489 m_children[i].get()->markCachedElementRectDirty(); 489 m_children[i].get()->markCachedElementRectDirty();
490 } 490 }
491 491
492 IntPoint AXObject::clickPoint() 492 IntPoint AXObject::clickPoint()
493 { 493 {
494 LayoutRect rect = elementRect(); 494 LayoutRect rect = elementRect();
495 return roundedIntPoint(LayoutPoint(rect.x() + rect.width() / 2, rect.y() + r ect.height() / 2)); 495 return roundedIntPoint(LayoutPoint(rect.x() + rect.width() / 2, rect.y() + r ect.height() / 2));
496 } 496 }
497 497
498 IntRect AXObject::boundingBoxForQuads(RenderObject* obj, const Vector<FloatQuad> & quads) 498 IntRect AXObject::boundingBoxForQuads(LayoutObject* obj, const Vector<FloatQuad> & quads)
499 { 499 {
500 ASSERT(obj); 500 ASSERT(obj);
501 if (!obj) 501 if (!obj)
502 return IntRect(); 502 return IntRect();
503 503
504 size_t count = quads.size(); 504 size_t count = quads.size();
505 if (!count) 505 if (!count)
506 return IntRect(); 506 return IntRect();
507 507
508 IntRect result; 508 IntRect result;
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 } 971 }
972 972
973 const AtomicString& AXObject::roleName(AccessibilityRole role) 973 const AtomicString& AXObject::roleName(AccessibilityRole role)
974 { 974 {
975 static const Vector<AtomicString>* roleNameVector = createRoleNameVector(); 975 static const Vector<AtomicString>* roleNameVector = createRoleNameVector();
976 976
977 return roleNameVector->at(role); 977 return roleNameVector->at(role);
978 } 978 }
979 979
980 } // namespace blink 980 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698