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

Side by Side Diff: Source/core/accessibility/AccessibilityTable.cpp

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 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 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 return; 324 return;
325 } 325 }
326 326
327 ASSERT(!m_haveChildren); 327 ASSERT(!m_haveChildren);
328 328
329 m_haveChildren = true; 329 m_haveChildren = true;
330 if (!m_renderer || !m_renderer->isTable()) 330 if (!m_renderer || !m_renderer->isTable())
331 return; 331 return;
332 332
333 RenderTable* table = toRenderTable(m_renderer); 333 RenderTable* table = toRenderTable(m_renderer);
334 AXObjectCache* axCache = m_renderer->document()->axObjectCache(); 334 AXObjectCache* axCache = m_renderer->document().axObjectCache();
335 335
336 // Go through all the available sections to pull out the rows and add them a s children. 336 // Go through all the available sections to pull out the rows and add them a s children.
337 table->recalcSectionsIfNeeded(); 337 table->recalcSectionsIfNeeded();
338 RenderTableSection* tableSection = table->topSection(); 338 RenderTableSection* tableSection = table->topSection();
339 if (!tableSection) 339 if (!tableSection)
340 return; 340 return;
341 341
342 RenderTableSection* initialTableSection = tableSection; 342 RenderTableSection* initialTableSection = tableSection;
343 while (tableSection) { 343 while (tableSection) {
344 344
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 } 541 }
542 542
543 // try the standard 543 // try the standard
544 if (title.isEmpty()) 544 if (title.isEmpty())
545 title = AccessibilityRenderObject::title(); 545 title = AccessibilityRenderObject::title();
546 546
547 return title; 547 return title;
548 } 548 }
549 549
550 } // namespace WebCore 550 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/accessibility/AccessibilitySlider.cpp ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698