Bug #3229 ยป 3229.patch
src/Wt/WApplication | ||
---|---|---|
* External stylesheets are inserted after the internal style sheet,
|
||
* and can therefore override default styles set by widgets in the
|
||
* internal style sheet.
|
||
* External stylesheets must have valid link.
|
||
*
|
||
* If not empty, \p condition is a string that is used to apply the
|
||
* stylesheet to specific versions of IE. Only a limited subset of
|
src/Wt/WApplication.C | ||
---|---|---|
void WApplication::useStyleSheet(const WCssStyleSheet& styleSheet,
|
||
const std::string& condition)
|
||
{
|
||
if (styleSheet.link().isNull())
|
||
throw WException("The added stylesheet must have valid link!");
|
||
bool display = true;
|
||
if (!condition.empty()) {
|
src/Wt/WCssStyleSheet | ||
---|---|---|
*
|
||
* Optionally, you may give a \p ruleName, which may later be
|
||
* used to check if the rule was already defined.
|
||
* Note: you may not pass the same rule to 2 diffrent applications.
|
||
*
|
||
* \sa isDefined()
|
||
*/
|
||
... | ... | |
std::vector<std::string> rulesRemoved_;
|
||
std::set<std::string> defined_;
|
||
bool isDirty();
|
||
friend class WebRenderer;
|
||
};
|
||
}
|
src/Wt/WCssStyleSheet.C | ||
---|---|---|
delete rules_.back();
|
||
}
|
||
bool WCssStyleSheet::isDirty()
|
||
{
|
||
return !rulesAdded_.empty() || !rulesModified_.empty() ||
|
||
!rulesRemoved_.empty();
|
||
}
|
||
} // namespace Wt
|
src/web/WebRenderer.C | ||
---|---|---|
|| !session_.app()->afterLoadJavaScript_.empty()
|
||
|| session_.app()->serverPushChanged_
|
||
|| session_.app()->styleSheetsAdded_
|
||
|| session_.app()->styleSheet().isDirty()
|
||
|| session_.app()->internalPathIsChanged_
|
||
|| !collectedJS1_.empty()
|
||
|| !collectedJS2_.empty()
|