diff options
author | Jacek Antonelli | 2008-08-15 23:45:24 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:24 -0500 |
commit | 0a78fa3920b32a51f01ebe7cfa30be45134f398f (patch) | |
tree | 7d0ebbf55bcb0a77c3957dd64315574281cc2f54 /linden/indra/newview/llwebbrowserctrl.cpp | |
parent | Second Life viewer sources 1.18.6.2-RC (diff) | |
download | meta-impy-0a78fa3920b32a51f01ebe7cfa30be45134f398f.zip meta-impy-0a78fa3920b32a51f01ebe7cfa30be45134f398f.tar.gz meta-impy-0a78fa3920b32a51f01ebe7cfa30be45134f398f.tar.bz2 meta-impy-0a78fa3920b32a51f01ebe7cfa30be45134f398f.tar.xz |
Second Life viewer sources 1.18.6.4-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llwebbrowserctrl.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/linden/indra/newview/llwebbrowserctrl.cpp b/linden/indra/newview/llwebbrowserctrl.cpp index 21270ed..8649515 100644 --- a/linden/indra/newview/llwebbrowserctrl.cpp +++ b/linden/indra/newview/llwebbrowserctrl.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2006&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2006&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2006-2007, Linden Research, Inc. | 7 | * Copyright (c) 2006-2008, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -36,14 +36,15 @@ | |||
36 | #include "llwebbrowserctrl.h" | 36 | #include "llwebbrowserctrl.h" |
37 | 37 | ||
38 | // viewer includes | 38 | // viewer includes |
39 | #include "llfloaterhtml.h" | ||
39 | #include "llfloaterworldmap.h" | 40 | #include "llfloaterworldmap.h" |
41 | #include "lluictrlfactory.h" | ||
40 | #include "llurldispatcher.h" | 42 | #include "llurldispatcher.h" |
43 | #include "llurlsimstring.h" | ||
41 | #include "llviewborder.h" | 44 | #include "llviewborder.h" |
45 | #include "llviewercontrol.h" | ||
42 | #include "llviewerwindow.h" | 46 | #include "llviewerwindow.h" |
43 | #include "llfloaterhtml.h" | ||
44 | #include "llweb.h" | 47 | #include "llweb.h" |
45 | #include "llurlsimstring.h" | ||
46 | #include "llviewercontrol.h" | ||
47 | 48 | ||
48 | // linden library includes | 49 | // linden library includes |
49 | #include "llfocusmgr.h" | 50 | #include "llfocusmgr.h" |
@@ -655,6 +656,7 @@ void LLWebBrowserCtrl::onClickLinkSecondLife( const EventType& eventIn ) | |||
655 | mEventEmitter.update( &LLWebBrowserCtrlObserver::onClickLinkSecondLife, event ); | 656 | mEventEmitter.update( &LLWebBrowserCtrlObserver::onClickLinkSecondLife, event ); |
656 | } | 657 | } |
657 | 658 | ||
659 | |||
658 | //////////////////////////////////////////////////////////////////////////////// | 660 | //////////////////////////////////////////////////////////////////////////////// |
659 | // | 661 | // |
660 | LLWebBrowserTexture::LLWebBrowserTexture( S32 width, S32 height, LLWebBrowserCtrl* browserCtrl, int browserWindowId ) : | 662 | LLWebBrowserTexture::LLWebBrowserTexture( S32 width, S32 height, LLWebBrowserCtrl* browserCtrl, int browserWindowId ) : |
@@ -847,6 +849,14 @@ LLView* LLWebBrowserCtrl::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFac | |||
847 | 849 | ||
848 | LLWebBrowserCtrl* web_browser = new LLWebBrowserCtrl( name, rect ); | 850 | LLWebBrowserCtrl* web_browser = new LLWebBrowserCtrl( name, rect ); |
849 | 851 | ||
852 | if(node->hasAttribute("caret_color")) | ||
853 | { | ||
854 | LLColor4 color; | ||
855 | LLUICtrlFactory::getAttributeColor(node, "caret_color", color); | ||
856 | LLColor4U colorU = LLColor4U(color); | ||
857 | LLMozLib::getInstance()->setCaretColor( web_browser->mEmbeddedBrowserWindowId, colorU.mV[0], colorU.mV[1], colorU.mV[2] ); | ||
858 | } | ||
859 | |||
850 | BOOL ignore_ui_scale = web_browser->getIgnoreUIScale(); | 860 | BOOL ignore_ui_scale = web_browser->getIgnoreUIScale(); |
851 | node->getAttributeBOOL("ignore_ui_scale", ignore_ui_scale); | 861 | node->getAttributeBOOL("ignore_ui_scale", ignore_ui_scale); |
852 | web_browser->setIgnoreUIScale((bool)ignore_ui_scale); | 862 | web_browser->setIgnoreUIScale((bool)ignore_ui_scale); |