| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, 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 | 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 1782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1793 LayoutObject* current = object; | 1793 LayoutObject* current = object; |
| 1794 while (current) { | 1794 while (current) { |
| 1795 if (current->IsLayoutBlockFlow()) { | 1795 if (current->IsLayoutBlockFlow()) { |
| 1796 LayoutBlockFlow* block_flow = ToLayoutBlockFlow(current); | 1796 LayoutBlockFlow* block_flow = ToLayoutBlockFlow(current); |
| 1797 if (!block_flow->InlineBoxWrapper()) | 1797 if (!block_flow->InlineBoxWrapper()) |
| 1798 return block_flow; | 1798 return block_flow; |
| 1799 } | 1799 } |
| 1800 current = current->Parent(); | 1800 current = current->Parent(); |
| 1801 } | 1801 } |
| 1802 | 1802 |
| 1803 ASSERT_NOT_REACHED(); | 1803 NOTREACHED(); |
| 1804 return nullptr; | 1804 return nullptr; |
| 1805 } | 1805 } |
| 1806 | 1806 |
| 1807 // Returns true if |r1| and |r2| are both non-null, both inline, and are | 1807 // Returns true if |r1| and |r2| are both non-null, both inline, and are |
| 1808 // contained within the same non-inline LayoutBlockFlow. | 1808 // contained within the same non-inline LayoutBlockFlow. |
| 1809 static bool IsInSameNonInlineBlockFlow(LayoutObject* r1, LayoutObject* r2) { | 1809 static bool IsInSameNonInlineBlockFlow(LayoutObject* r1, LayoutObject* r2) { |
| 1810 if (!r1 || !r2) | 1810 if (!r1 || !r2) |
| 1811 return false; | 1811 return false; |
| 1812 if (!r1->IsInline() || !r2->IsInline()) | 1812 if (!r1->IsInline() || !r2->IsInline()) |
| 1813 return false; | 1813 return false; |
| (...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3219 return String(); | 3219 return String(); |
| 3220 return ToTextControlElement(node)->StrippedPlaceholder(); | 3220 return ToTextControlElement(node)->StrippedPlaceholder(); |
| 3221 } | 3221 } |
| 3222 | 3222 |
| 3223 DEFINE_TRACE(AXNodeObject) { | 3223 DEFINE_TRACE(AXNodeObject) { |
| 3224 visitor->Trace(node_); | 3224 visitor->Trace(node_); |
| 3225 AXObject::Trace(visitor); | 3225 AXObject::Trace(visitor); |
| 3226 } | 3226 } |
| 3227 | 3227 |
| 3228 } // namespace blink | 3228 } // namespace blink |
| OLD | NEW |