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

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

Issue 935283002: Rename {Author,UserAgent}ShadowRoot to {Open,Closed}ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix inspector tests 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
« no previous file with comments | « Source/devtools/front_end/sdk/DOMModel.js ('k') | Source/modules/accessibility/AXSlider.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2193 matching lines...) Expand 10 before | Expand all | Expand 10 after
2204 } 2204 }
2205 } 2205 }
2206 2206
2207 void AXRenderObject::addTextFieldChildren() 2207 void AXRenderObject::addTextFieldChildren()
2208 { 2208 {
2209 Node* node = this->node(); 2209 Node* node = this->node();
2210 if (!isHTMLInputElement(node)) 2210 if (!isHTMLInputElement(node))
2211 return; 2211 return;
2212 2212
2213 HTMLInputElement& input = toHTMLInputElement(*node); 2213 HTMLInputElement& input = toHTMLInputElement(*node);
2214 Element* spinButtonElement = input.userAgentShadowRoot()->getElementById(Sha dowElementNames::spinButton()); 2214 Element* spinButtonElement = input.closedShadowRoot()->getElementById(Shadow ElementNames::spinButton());
2215 if (!spinButtonElement || !spinButtonElement->isSpinButtonElement()) 2215 if (!spinButtonElement || !spinButtonElement->isSpinButtonElement())
2216 return; 2216 return;
2217 2217
2218 AXSpinButton* axSpinButton = toAXSpinButton(axObjectCache()->getOrCreate(Spi nButtonRole)); 2218 AXSpinButton* axSpinButton = toAXSpinButton(axObjectCache()->getOrCreate(Spi nButtonRole));
2219 axSpinButton->setSpinButtonElement(toSpinButtonElement(spinButtonElement)); 2219 axSpinButton->setSpinButtonElement(toSpinButtonElement(spinButtonElement));
2220 axSpinButton->setParent(this); 2220 axSpinButton->setParent(this);
2221 m_children.append(axSpinButton); 2221 m_children.append(axSpinButton);
2222 } 2222 }
2223 2223
2224 void AXRenderObject::addImageMapChildren() 2224 void AXRenderObject::addImageMapChildren()
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
2411 if (label && label->renderer()) { 2411 if (label && label->renderer()) {
2412 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect(); 2412 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect();
2413 result.unite(labelRect); 2413 result.unite(labelRect);
2414 } 2414 }
2415 } 2415 }
2416 2416
2417 return result; 2417 return result;
2418 } 2418 }
2419 2419
2420 } // namespace blink 2420 } // namespace blink
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/DOMModel.js ('k') | Source/modules/accessibility/AXSlider.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698