equal
deleted
inserted
replaced
40 #include "HTMLIFrameElement.h" |
40 #include "HTMLIFrameElement.h" |
41 #include "HTMLNames.h" |
41 #include "HTMLNames.h" |
42 #include "HTMLObjectElement.h" |
42 #include "HTMLObjectElement.h" |
43 #include "HTMLParamElement.h" |
43 #include "HTMLParamElement.h" |
44 #include "KURL.h" |
44 #include "KURL.h" |
45 #include "MIMETypeRegistry.h" |
45 #include "MimeTypeRegistry.h" |
46 #include "Page.h" |
46 #include "Page.h" |
47 #include "RenderView.h" |
47 #include "RenderView.h" |
48 #include "Text.h" |
48 #include "Text.h" |
49 #include "Settings.h" |
49 #include "Settings.h" |
50 |
50 |
206 } |
206 } |
207 |
207 |
208 // If we still don't have a type, try to map from a specific CLASSID to a type. |
208 // If we still don't have a type, try to map from a specific CLASSID to a type. |
209 if (serviceType.isEmpty() && !o->m_classId.isEmpty()) |
209 if (serviceType.isEmpty() && !o->m_classId.isEmpty()) |
210 mapClassIdToServiceType(o->m_classId, serviceType); |
210 mapClassIdToServiceType(o->m_classId, serviceType); |
211 #if PLATFORM(SYMBIAN) |
|
212 //If there is no Type and Classid then return. |
|
213 else if (serviceType.isEmpty() && o->m_classId.isEmpty() && !embed) |
|
214 return; |
|
215 #endif |
|
216 |
211 |
217 // If no URL and type, abort. |
212 // If no URL and type, abort. |
218 if (url.isEmpty() && serviceType.isEmpty()) |
213 if (url.isEmpty() && serviceType.isEmpty()) |
219 return; |
214 return; |
220 if (!isURLAllowed(document(), url)) |
215 if (!isURLAllowed(document(), url)) |
364 return false; |
359 return false; |
365 } |
360 } |
366 |
361 |
367 int RenderPartObject::calcReplacedWidth() const |
362 int RenderPartObject::calcReplacedWidth() const |
368 { |
363 { |
369 if (m_widget && m_widget->getView() && (m_widget->getView())->hasResized()) { |
364 if (m_widget && (m_widget->getView())->hasResized()) { |
370 IntRect newRect = m_widget->frameGeometry(); |
365 IntRect newRect = m_widget->frameGeometry(); |
371 int newWidth = newRect.width(); |
366 int newWidth = newRect.width(); |
372 if (newWidth > 0) { |
367 if (newWidth > 0) { |
373 return newWidth; |
368 return newWidth; |
374 } |
369 } |
376 return RenderReplaced::calcReplacedWidth(); |
371 return RenderReplaced::calcReplacedWidth(); |
377 } |
372 } |
378 |
373 |
379 int RenderPartObject::calcReplacedHeight() const |
374 int RenderPartObject::calcReplacedHeight() const |
380 { |
375 { |
381 if (m_widget && m_widget->getView() && (m_widget->getView())->hasResized()) { |
376 if (m_widget && (m_widget->getView())->hasResized()) { |
382 IntRect newRect = m_widget->frameGeometry(); |
377 IntRect newRect = m_widget->frameGeometry(); |
383 int newHeight = newRect.height(); |
378 int newHeight = newRect.height(); |
384 if (newHeight > 0) { |
379 if (newHeight > 0) { |
385 return newHeight; |
380 return newHeight; |
386 } |
381 } |