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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 #if ENABLE(TOUCH_EVENTS) | 214 #if ENABLE(TOUCH_EVENTS) |
215 #include "TouchList.h" | 215 #include "TouchList.h" |
216 #endif | 216 #endif |
217 | 217 |
218 #if ENABLE(MATHML) | 218 #if ENABLE(MATHML) |
219 #include "MathMLElement.h" | 219 #include "MathMLElement.h" |
220 #include "MathMLElementFactory.h" | 220 #include "MathMLElementFactory.h" |
221 #include "MathMLNames.h" | 221 #include "MathMLNames.h" |
222 #endif | 222 #endif |
223 | 223 |
224 #if ENABLE(MICRODATA) | |
225 #include "MicroDataItemList.h" | |
226 #include "NodeRareData.h" | |
227 #endif | |
228 | |
229 #if ENABLE(LINK_PRERENDER) | 224 #if ENABLE(LINK_PRERENDER) |
230 #include "Prerenderer.h" | 225 #include "Prerenderer.h" |
231 #endif | 226 #endif |
232 | 227 |
233 #if ENABLE(VIDEO_TRACK) | 228 #if ENABLE(VIDEO_TRACK) |
234 #include "CaptionUserPreferences.h" | 229 #include "CaptionUserPreferences.h" |
235 #endif | 230 #endif |
236 | 231 |
237 using namespace std; | 232 using namespace std; |
238 using namespace WTF; | 233 using namespace WTF; |
(...skipping 5355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5594 DocumentLoader* loader = m_frame->loader()->documentLoader(); | 5589 DocumentLoader* loader = m_frame->loader()->documentLoader(); |
5595 if (!loader) | 5590 if (!loader) |
5596 return 0; | 5591 return 0; |
5597 | 5592 |
5598 if (m_frame->document() != this) | 5593 if (m_frame->document() != this) |
5599 return 0; | 5594 return 0; |
5600 | 5595 |
5601 return loader; | 5596 return loader; |
5602 } | 5597 } |
5603 | 5598 |
5604 #if ENABLE(MICRODATA) | |
5605 PassRefPtr<NodeList> Document::getItems(const String& typeNames) | |
5606 { | |
5607 // Since documet.getItem() is allowed for microdata, typeNames will be null
string. | |
5608 // In this case we need to create an empty string identifier to map such req
uest in the cache. | |
5609 String localTypeNames = typeNames.isNull() ? MicroDataItemList::undefinedIte
mType() : typeNames; | |
5610 | |
5611 return ensureRareData()->ensureNodeLists()->addCacheWithName<MicroDataItemLi
st>(this, MicroDataItemListType, localTypeNames); | |
5612 } | |
5613 #endif | |
5614 | |
5615 IntSize Document::viewportSize() const | 5599 IntSize Document::viewportSize() const |
5616 { | 5600 { |
5617 if (!view()) | 5601 if (!view()) |
5618 return IntSize(); | 5602 return IntSize(); |
5619 return view()->visibleContentRect(ScrollableArea::IncludeScrollbars).size(); | 5603 return view()->visibleContentRect(ScrollableArea::IncludeScrollbars).size(); |
5620 } | 5604 } |
5621 | 5605 |
5622 #if ENABLE(CSS_DEVICE_ADAPTATION) | 5606 #if ENABLE(CSS_DEVICE_ADAPTATION) |
5623 IntSize Document::initialViewportSize() const | 5607 IntSize Document::initialViewportSize() const |
5624 { | 5608 { |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5962 return; | 5946 return; |
5963 | 5947 |
5964 Vector<RefPtr<Element> > associatedFormControls; | 5948 Vector<RefPtr<Element> > associatedFormControls; |
5965 copyToVector(m_associatedFormControls, associatedFormControls); | 5949 copyToVector(m_associatedFormControls, associatedFormControls); |
5966 | 5950 |
5967 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm
Controls); | 5951 frame()->page()->chrome()->client()->didAssociateFormControls(associatedForm
Controls); |
5968 m_associatedFormControls.clear(); | 5952 m_associatedFormControls.clear(); |
5969 } | 5953 } |
5970 | 5954 |
5971 } // namespace WebCore | 5955 } // namespace WebCore |
OLD | NEW |