Title: [225945] trunk/Source/WebInspectorUI
- Revision
- 225945
- Author
- nvasil...@apple.com
- Date
- 2017-12-14 17:00:04 -0800 (Thu, 14 Dec 2017)
Log Message
Web Inspector: Styles Redesign: selecting text should not add new properties
https://bugs.webkit.org/show_bug.cgi?id=180797
<rdar://problem/36039751>
Reviewed by Devin Rousso.
* UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js:
(WI.SpreadsheetCSSStyleDeclarationSection.prototype._handleClick):
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (225944 => 225945)
--- trunk/Source/WebInspectorUI/ChangeLog 2017-12-15 00:50:04 UTC (rev 225944)
+++ trunk/Source/WebInspectorUI/ChangeLog 2017-12-15 01:00:04 UTC (rev 225945)
@@ -1,3 +1,14 @@
+2017-12-14 Nikita Vasilyev <nvasil...@apple.com>
+
+ Web Inspector: Styles Redesign: selecting text should not add new properties
+ https://bugs.webkit.org/show_bug.cgi?id=180797
+ <rdar://problem/36039751>
+
+ Reviewed by Devin Rousso.
+
+ * UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js:
+ (WI.SpreadsheetCSSStyleDeclarationSection.prototype._handleClick):
+
2017-12-14 Devin Rousso <web...@devinrousso.com>
Web Inspector: replace HTMLCanvasElement with CanvasRenderingContext for instrumentation logic
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js (225944 => 225945)
--- trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js 2017-12-15 00:50:04 UTC (rev 225944)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationSection.js 2017-12-15 01:00:04 UTC (rev 225945)
@@ -387,6 +387,9 @@
if (this._wasFocused)
return;
+ if (window.getSelection().type === "Range")
+ return;
+
event.stop();
if (event.target.classList.contains(WI.SpreadsheetStyleProperty.StyleClassName)) {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes