| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
| 8 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 9 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
| 10 * | 10 * |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 return; | 389 return; |
| 390 | 390 |
| 391 root->removeChildren(); | 391 root->removeChildren(); |
| 392 | 392 |
| 393 // It's ok to clear contents of all other ShadowRoots because they must have | 393 // It's ok to clear contents of all other ShadowRoots because they must have |
| 394 // been created by InputFieldPasswordGeneratorButtonElement, and we don't al
low adding | 394 // been created by InputFieldPasswordGeneratorButtonElement, and we don't al
low adding |
| 395 // AuthorShadowRoot to HTMLInputElement. | 395 // AuthorShadowRoot to HTMLInputElement. |
| 396 // FIXME: Remove the PasswordGeneratorButtonElement's shadow root and then r
emove this loop. | 396 // FIXME: Remove the PasswordGeneratorButtonElement's shadow root and then r
emove this loop. |
| 397 while ((root = root->youngerShadowRoot())) { | 397 while ((root = root->youngerShadowRoot())) { |
| 398 root->removeChildren(); | 398 root->removeChildren(); |
| 399 root->appendChild(HTMLShadowElement::create(shadowTag, &element()->docum
ent())); | 399 root->appendChild(HTMLShadowElement::create(shadowTag, element()->docume
nt())); |
| 400 } | 400 } |
| 401 } | 401 } |
| 402 | 402 |
| 403 Decimal InputType::parseToNumber(const String&, const Decimal& defaultValue) con
st | 403 Decimal InputType::parseToNumber(const String&, const Decimal& defaultValue) con
st |
| 404 { | 404 { |
| 405 ASSERT_NOT_REACHED(); | 405 ASSERT_NOT_REACHED(); |
| 406 return defaultValue; | 406 return defaultValue; |
| 407 } | 407 } |
| 408 | 408 |
| 409 Decimal InputType::parseToNumberOrNaN(const String& string) const | 409 Decimal InputType::parseToNumberOrNaN(const String& string) const |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 | 958 |
| 959 void InputType::observeFeatureIfVisible(UseCounter::Feature feature) const | 959 void InputType::observeFeatureIfVisible(UseCounter::Feature feature) const |
| 960 { | 960 { |
| 961 if (RenderStyle* style = element()->renderStyle()) { | 961 if (RenderStyle* style = element()->renderStyle()) { |
| 962 if (style->visibility() != HIDDEN) | 962 if (style->visibility() != HIDDEN) |
| 963 UseCounter::count(&element()->document(), feature); | 963 UseCounter::count(&element()->document(), feature); |
| 964 } | 964 } |
| 965 } | 965 } |
| 966 | 966 |
| 967 } // namespace WebCore | 967 } // namespace WebCore |
| OLD | NEW |