[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/khtml/html
From:       Harri Porten <porten () kde ! org>
Date:       2008-05-31 2:16:41
Message-ID: 1212200201.049798.24724.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 814658 by porten:

Added missing function implementations.


 M  +1 -0      HTMLMediaElement.h  
 M  +14 -0     HTMLVideoElement.cpp  


--- trunk/KDE/kdelibs/khtml/html/HTMLMediaElement.h #814657:814658
@@ -39,6 +39,7 @@
 class MediaPlayer
 {
 public:
+    QRect naturalSize() const { return QRect(); }
     float duration() const { return 0; }
     float rate() const { return 0; }
     void setRate(float) { }
--- trunk/KDE/kdelibs/khtml/html/HTMLVideoElement.cpp #814657:814658
@@ -40,6 +40,20 @@
     return ID_VIDEO;
 }
 
+int HTMLVideoElement::videoWidth() const
+{
+    if (!m_player)
+        return 0;
+    return m_player->naturalSize().width();
+}
+
+int HTMLVideoElement::videoHeight() const
+{
+    if (!m_player)
+        return 0;
+    return m_player->naturalSize().height();
+}
+
 int HTMLVideoElement::width() const
 {
     bool ok;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic