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

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

Issue 1307673003: Made CSSPrimitiveValue::getString() only work for String types (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@split_out_pair
Patch Set: Rebase and review feedback Created 5 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
« no previous file with comments | « Source/core/css/resolver/StyleBuilderCustom.cpp ('k') | no next file » | 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) 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 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 document->updateLayoutTreeIfNeeded(); 1232 document->updateLayoutTreeIfNeeded();
1233 1233
1234 Node* node = m_private->node(); 1234 Node* node = m_private->node();
1235 if (!node) 1235 if (!node)
1236 return WebString(); 1236 return WebString();
1237 1237
1238 const ComputedStyle* computedStyle = node->ensureComputedStyle(); 1238 const ComputedStyle* computedStyle = node->ensureComputedStyle();
1239 if (!computedStyle) 1239 if (!computedStyle)
1240 return WebString(); 1240 return WebString();
1241 1241
1242 return WebString(CSSPrimitiveValue::create(computedStyle->display())->getStr ingValue()); 1242 return WebString(CSSPrimitiveValue::create(computedStyle->display())->cssTex t());
1243 } 1243 }
1244 1244
1245 bool WebAXObject::accessibilityIsIgnored() const 1245 bool WebAXObject::accessibilityIsIgnored() const
1246 { 1246 {
1247 if (isDetached()) 1247 if (isDetached())
1248 return false; 1248 return false;
1249 1249
1250 return m_private->accessibilityIsIgnored(); 1250 return m_private->accessibilityIsIgnored();
1251 } 1251 }
1252 1252
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 m_private = object; 1613 m_private = object;
1614 return *this; 1614 return *this;
1615 } 1615 }
1616 1616
1617 WebAXObject::operator PassRefPtrWillBeRawPtr<AXObject>() const 1617 WebAXObject::operator PassRefPtrWillBeRawPtr<AXObject>() const
1618 { 1618 {
1619 return m_private.get(); 1619 return m_private.get();
1620 } 1620 }
1621 1621
1622 } // namespace blink 1622 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleBuilderCustom.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698