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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 2497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2508 const AtomicString& value = element->fastGetAttribute(hrefAttr); | 2508 const AtomicString& value = element->fastGetAttribute(hrefAttr); |
2509 if (!value.isNull()) | 2509 if (!value.isNull()) |
2510 href = &value; | 2510 href = &value; |
2511 } | 2511 } |
2512 if (!target) { | 2512 if (!target) { |
2513 const AtomicString& value = element->fastGetAttribute(targetAttr
); | 2513 const AtomicString& value = element->fastGetAttribute(targetAttr
); |
2514 if (!value.isNull()) | 2514 if (!value.isNull()) |
2515 target = &value; | 2515 target = &value; |
2516 } | 2516 } |
2517 if (contentSecurityPolicy()->isActive()) | 2517 if (contentSecurityPolicy()->isActive()) |
2518 UseCounter::observe(this, UseCounter::ContentSecurityPolicyWithB
aseElement); | 2518 UseCounter::count(this, UseCounter::ContentSecurityPolicyWithBas
eElement); |
2519 } | 2519 } |
2520 } | 2520 } |
2521 | 2521 |
2522 // FIXME: Since this doesn't share code with completeURL it may not handle e
ncodings correctly. | 2522 // FIXME: Since this doesn't share code with completeURL it may not handle e
ncodings correctly. |
2523 KURL baseElementURL; | 2523 KURL baseElementURL; |
2524 if (href) { | 2524 if (href) { |
2525 String strippedHref = stripLeadingAndTrailingHTMLSpaces(*href); | 2525 String strippedHref = stripLeadingAndTrailingHTMLSpaces(*href); |
2526 if (!strippedHref.isEmpty()) | 2526 if (!strippedHref.isEmpty()) |
2527 baseElementURL = KURL(url(), strippedHref); | 2527 baseElementURL = KURL(url(), strippedHref); |
2528 } | 2528 } |
(...skipping 3204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5733 return; | 5733 return; |
5734 | 5734 |
5735 Vector<RefPtr<Element> > associatedFormControls; | 5735 Vector<RefPtr<Element> > associatedFormControls; |
5736 copyToVector(m_associatedFormControls, associatedFormControls); | 5736 copyToVector(m_associatedFormControls, associatedFormControls); |
5737 | 5737 |
5738 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm
Controls); | 5738 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm
Controls); |
5739 m_associatedFormControls.clear(); | 5739 m_associatedFormControls.clear(); |
5740 } | 5740 } |
5741 | 5741 |
5742 } // namespace WebCore | 5742 } // namespace WebCore |
OLD | NEW |