Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/loading/resources/no-cache-xslt.php

Issue 2353903002: {CSS,XSL}StyleSheetResource should mark their clients as finished on checkNotify (Closed)
Patch Set: yhirano style Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <?php
2 $etag = "must-have-some-etag";
3 if (isset($_SERVER['HTTP_IF_NONE_MATCH']) && stripslashes($_SERVER['HTTP_IF_NONE _MATCH']) == $etag) {
4 header("HTTP/1.0 304 Not Modified");
5 die;
6 }
7 header("ETag: " . $etag);
8 header("Cache-Control: no-cache");
9 header("Content-Type: text/xsl");
10 print("<?xml version=\"1.0\"?>");
11 ?>
12 <xsl:stylesheet version="1.0"
13 xmlns:xhtml="http://www.w3.org/1999/xhtml"
14 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
15
16 <xsl:template match="*">
17 <xsl:copy>
18 <xsl:copy-of select="@*" />
19 <xsl:apply-templates select="node()" />
20 </xsl:copy>
21 </xsl:template>
22
23 <xsl:template match="xhtml:div[@id='markgreen']">
24 <xsl:copy>
25 <xsl:copy-of select="@*" />
26 <xsl:attribute name="style">
27 <xsl:value-of select="'color: green;'" />
28 </xsl:attribute>
29 <xsl:apply-templates select="node()" />
30 </xsl:copy>
31 </xsl:template>
32 </xsl:stylesheet>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698